首先执行命令找到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;
nginx不重启检测配置文件正确性步骤方法
最新推荐文章于 2024-04-01 15:43:23 发布