nginx 服务器重启命令,关闭

启动nginx:

nginx -c /path/to/nginx.conf
 
关闭nginx:
nginx -s stop  :快速停止nginx
         quit  :完整有序的停止nginx
 
重启nginx:
nginx -s reload  :修改配置后重新加载生效
 
nginx -s reopen  :重新打开日志文件
 
测试nginx配置文件是否正确
nginx -t -c /path/to/nginx.conf
 
 


posted on 2017-08-18 10:17  暗夜——茂茂  阅读(370)  评论(0)    收藏  举报

导航