nginx 不重启检测配置文件的正确性,nginx正确性
nginx 不重启检测配置文件的正确性,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;
评论暂时关闭