平滑重启nginx
首先确定一下nginx配置语法是否正确
/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf
如果正确,会提示
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
平滑重启
/usr/local/nginx/sbin/nginx -s reload