欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

nginx Linux启动脚本 博客分类: LinuxNginx  

程序员文章站 2024-03-22 13:26:04
...

nginx启动脚本,CentOS运行测试通过

 

解压文件到 /etc/init.d/ 目录下,运行以下命令安装nginx服务

 

# chkconfig --add nginx
# chkconfig nginx on
 

然后就可以两种方式来管理nginx服务

 

# /etc/init.d/nginx start|stop|reload|restart

或者

 

# service nginx start|stop|reload|restart