1.先執行一下命令:
1.1 刪除nginx,–purge包括配置文件
sudo apt-get --purge remove nginx
1.2 自動移除全部不使用的軟件包
sudo apt-get autoremove
1.3 羅列出與nginx相關的軟件
dpkg --get-selections|grep nginx
執行1.3的結果:
stephen@stephen-OptiPlex-390:~$ dpkg --get-selections|grep nginx
nginx install
nginx-common install
nginx-core install
1.4 刪除1.3查詢出與nginx有關的軟件
sudo apt-get --purge remove nginx
sudo apt-get --purge remove nginx-common
sudo apt-get --purge remove ngi...全文詳見:這里