nginx很顽强,单独的删除它的文件是不够的,这会导致你再次安装时出现一系列的问题。
sudo apt-get --purge remove nginx
sudo apt-get autoremove
dpkg --get-selections|grep nginx
sudo apt-get --purge remove nginx
sudo apt-get --purge remove nginx-common
sudo apt-get --purge remove nginx-core
ps -ef |grep nginx
sudo kill -9 xxx:xxx表示的是进程代码
sudo find / -name nginx*
sudo rm -rf xxx:xxx表示文件路径
sudo apt-get update
sudo apt-get install nginx
这个时候就可以看到nginx的欢迎界面了
原文:https://www.cnblogs.com/niuben/p/13283374.html