1.删除Nginx,-purge包括配置文件@H_502_3@
sudo apt-get --purge remove Nginx
2.移除全部不使用的软件包@H_502_3@
sudo apt-get autoremove
dpkg --get-selections|grep Nginx
sudo apt-get --purge remove Nginx-common
sudo apt-get --purge remove Nginx-core
4.查看Nginx正在运行的进程,如果有就kill掉@H_502_3@
ps -ef |grep Nginx
sudo kill -9 XXX
5.全局查找与Nginx相关的文件@H_502_3@
sudo find / -name Nginx*
sudo rm -rf file
sudo apt-get update
sudo apt-get install Nginx
Nginx的其他内容
测试@H_502_3@Nginx配置是否正确@H_502_3@
sudo Nginx -t
sudo service Nginx restart