nginx Linux启动脚本,nginxlinux脚本


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
 

 

 

 

 

相关内容

    暂无相关文章