我刚刚使用我的服务器(Ubuntu 11.04)完全卸载了Nginx 1.0.6
原文链接:https://www.f2er.com/ubuntu/348883.htmlapt-get remove Nginx rm -rf /etc/Nginx/ rm -rf /usr/sbin/Nginx rm /usr/share/man/man1/Nginx.1.gz apt-get remove Nginx*
现在我想再次安装它,但是当启动Nginx时,我得到的错误如下:
Restarting Nginx: Nginx: [emerg] open() “/etc/Nginx/Nginx.conf” Failed (2: No such file or directory)
Restarting Nginx: Nginx: [emerg] open() “/etc/Nginx/mime.types” Failed (2: No such file or directory) in /etc/Nginx/Nginx.conf:12
现在似乎apt-get install Nginx没有完全安装它,我清除了apt-get缓存,似乎没有帮助.如何使用apt-get完整安装Nginx?