nginx 启动/停止/重启

启动:

 -c filename   : set configuration file (default: conf/nginx.conf)

[root@LinuxServer sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

 

停止:

-s signal    : send signal to a master process: stop, quit, reopen, reload

1、 pkill -9 nginx

2、 /usr/local/nginx/sbin/nginx -s stop

 

重启:

/usr/local/nginx/sbin/nginx -s reload

posted @ 2017-03-20 14:11  Vincen_shen  阅读(160)  评论(0编辑  收藏  举报