输入 sudo nginx
结果出现如下
nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
解决方法:
sudo apt-get --purge remove nginx-common
sudo apt-get --purge remove nginx*
sudo apt-get autoremove
sudo apt install nginx
输入 sudo nginx
结果出现如下
nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
解决方法:
sudo apt-get --purge remove nginx-common
sudo apt-get --purge remove nginx*
sudo apt-get autoremove
sudo apt install nginx
本文标题:启动nginx遇到的问题
本文链接:https://www.haomeiwen.com/subject/fivzrktx.html
网友评论