- TomyTang 在版块 Linux平台 中发起了话题 Nginx启动错误Failed to start nginx – high performance web server. 2年, 5个月前 - 在配置Nginx时,重启后提示Failed to start nginx – high performance web server. - 一般是端口占用问题, - 如果之前有apache2 占用,用如下命令 - sudo service apache2 stop 
 sudo systemctl restart nginx- 如果问题依旧,用如下命令查看被占用的端口 - sudo lsof -i:80/或者443 - 再使用 - sudo fuser -k 80/tcp 
 sudo systemctl restart nginx- 在某些情况下,它可能是配置文件中的一些问题。 - 您可以使用nginx -t -c /etc/nginx/nginx.conf命令查找任何错误的配置。 - 在某些情况下,此错误是由端口 80 上已存在的默认 Nginx 站点引起的,如果不需要默认配置,则删除默认配置即可。 - sudo rm /etc/nginx/sites-enabled/default 
 sudo service nginx restart
 最后在线: 活跃于 1年, 9个月前
评论: 7
获赞: 0
文章: 0
粉丝: 69
关注: 69
好友: 2
User Rating:   ( vote) 

 
 