由于多种多样的因素,在操作站点时出现《检测到配置文件有错误,请先排除后再操作》
一般我们都可以按照他提示的报错信息进行反查进行修复
案例一:
nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok
nginx: [emerg] open() "/www/wwwlogs/www/server/stop.bty5.com.log" failed (2: No such file or directory)
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
提示文中字面意思就是路径文件/www/wwwlogs/www/server/stop.bty5.com.log
不存在,导致nginx报错,我们只需要在提示的目录文件创建好这个文件即可,没有特殊问题一般保存配置或重载后都能正常使用。
更多案例待添加……