启动nginx报错failed to start nginx - high performance web server
错误原因分析:
1、查看日志报错内容
日志位置在/etc/nginx/nginx.conf中显示

查看日志内容:

错误内容显示:80端口已经被占用
解决方案:修改默认端口8号0
打开/etc/nginx/nginx.conf配置文件,查看是否有 server模块,如果有,将里面的 listen端口号改为8082,如果没有,打开默认文件/etc/nginx/conf.d/default.conf修改 server模块的 listen端口号。如下图所示。

然后重新加载nginx
systemctl reload nginx
再重新启动
systemctl restart nginx即可
