nginx 不重启检测配置文件的正确性

首先执行命令找到nginx路径,
ps aux | grep nginx;
如nginx路径为;
/usr/local/nginx/sbin/nginx;

contos 下面查看 nginx配置是否OK,

/usr/local/nginx/sbin/nginx -t;

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;

猜你喜欢

转载自blog.csdn.net/lihuang319/article/details/79891453
今日推荐