sudo apt-get --purge remove nginx
sudo apt-get autoremove
dpkg --get-selections|grep nginx
執行1.3的結果:
stephen@stephen-optiplex-390:~$ dpkg --get-selections|grep nginx
nginx install
nginx-common install
nginx-core install
sudo apt-get --purge remove nginx
sudo apt-get --purge remove nginx-common
sudo apt-get --purge remove nginx-core
這樣就可以完全解除安裝掉nginx包括配置檔案
ps -ef |grep nginx
看下nginx還有沒有啟動,一般執行完1後,nginx還是啟動著的,如下:
stephen@stephen-optiplex-390:~$ ps -ef |grep nginx
root 7875 2317 0 15:02 ? 00:00:00 nginx: master process /usr/sbin/nginx
www-data 7876 7875 0 15:02 ? 00:00:00 nginx: worker process
www-data 7877 7875 0 15:02 ? 00:00:00 nginx: worker process
www-data 7878 7875 0 15:02 ? 00:00:00 nginx: worker process
www-data 7879 7875 0 15:02 ? 00:00:00 nginx: worker process
stephen 8321 3510 0 15:20 pts/0 00:00:00 grep --color=auto nginx
sudo kill -9 7875 7876 7877 7879
sudo find / -name nginx*
sudo rm -rf file
這樣就徹底刪除nginx了
sudo apt-get update
sudo apt-get install nginx
Ubuntu徹底刪除nginx
sudo apt get purge remove nginxsudo apt get autoremovedpkg get selections grep nginx執行1.3的結果 stephen stephen optiplex 390 dpkg get selections grep ngi...
在ubuntu中徹底刪除nginx
以下命令都在root使用者許可權下執行 1 刪除nginx,purge包括配置檔案 apt get purge remove nginx2 自動移除全部不使用的軟體包 apt get autoremove3 羅列出與nginx相關的軟體 dpkg get selections grep nginx4...
徹底刪除nginx
1.先執行一下命令 sudo apt get purge remove nginx sudo apt get autoremove dpkg get selections grep nginx 羅列出與nginx相關的軟體 sudo apt get purge remove nginx common...