#查询nginx所在路径
#校验如下
/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf
#重启如下
/usr/local/nginx/sbin/nginx -s reload
#启动如下
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
#停止如下
ps -ef | grep nginx |grep -v grep | awk '{print $2}' |xargs kill -9
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/2137.html