#检查语法
/application/nginx/sbin/nginx –t
#平滑重启
/application/nginx/sbin/nginx –s reload
#不间断服务重启,将 pid 行程重跑 (restart)
Kill –HUP `cat /opt/nginx/logs/nginx.pid`
#关闭
#检查语法
/application/nginx/sbin/nginx –t
#平滑重启
/application/nginx/sbin/nginx –s reload
#不间断服务重启,将 pid 行程重跑 (restart)
Kill –HUP `cat /opt/nginx/logs/nginx.pid`
#关闭
转载于:https://www.cnblogs.com/fanweisheng/p/11328486.html