原因是因为之前卸载nginx时没卸载干净,导致此错误,执行以下指令清除干净后安装即可

sudo apt-get remove nginx nginx-common
sudo apt-get purge nginx nginx-common
sudo apt-get autoremove
sudo apt-get remove nginx-full nginx-common
sudo apt-get install nginx

成功解决:ubuntu安装nginx时报错Failed to start A high performance web server and a reverse proxy server.的问题

欢迎小伙伴讨论,文章内容如有错误请在评论区评论或发私聊消息,谢谢你。

Logo

一站式 AI 云服务平台

更多推荐