徹底刪除nginx

2021-07-10 03:24:57 字數 657 閱讀 3683

1.先執行一下命令:

sudo apt-get –purge remove nginx

sudo apt-get autoremove dpkg –get-selections|grep nginx 羅列出與nginx相關的軟體

sudo apt-get –purge remove nginx-common

sudo apt-get –purge remove nginx

這樣就可以完全解除安裝掉nginx包括配置檔案

2.ps -aux |grep nginx

看下nginx還有沒有啟動,一般執行完1後,nginx還是啟動著的,如下: bkxmgx@ubuntu:/$ ps -ef |grep nginx root 4061 2418 0 mar11 ? 00:00:00 nginx: master process sbin/nginx nobody 4062 4061 0 mar11 ? 00:00:00 nginx: worker process bkxmgx 15487 4229 0 01:13 pts/0 00:00:00 grep –color=auto nginx

3.killall -9 nginx 殺死nginx的程序

4.sudo find / -name 『nginx』 | xargs rm -rf 刪除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

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 n...

在ubuntu中徹底刪除nginx

以下命令都在root使用者許可權下執行 1 刪除nginx,purge包括配置檔案 apt get purge remove nginx2 自動移除全部不使用的軟體包 apt get autoremove3 羅列出與nginx相關的軟體 dpkg get selections grep nginx4...