ITeye博客

nginx Linux启动脚本

waiting · 2011-10-07 18:31 · Linux · Nginx · 操作系统 · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。