nginx -s reload :修改配置后从新加载生效html
nginx -s reopen :从新打开日志文件
nginx -t -c /path/to/nginx.conf 测试nginx配置文件是否正确
关闭nginx:
nginx -s stop :快速中止nginx
quit :完整有序的中止nginx
其余的中止nginx 方式:
ps -ef | grep nginx
kill -QUIT 主进程号 :从容中止Nginx
kill -TERM 主进程号 :快速中止Nginx
pkill -9 nginx :强制中止Nginx
启动nginx:
nginx -c /path/to/nginx.conf
平滑重启nginx:
kill -HUP 主进程号nginx
转载,原文地址:https://www.cnblogs.com/apexchu/p/4119252.html测试