徹底刪除nginx

來源:互聯網
上載者:User
1.先執行一下命令:

sudo apt-get --purge remove nginx

sudo apt-get autoremove

dpkg --get-selections|grep nginx

羅列出與nginx相關的軟體, nginx-common deinstall 然後

sudo apt-get --purge remove nginx-common

這樣就可以完全卸載掉nginx包括設定檔

2.ps -ef |grep nginx 看下nginx還有沒有啟動,一般執行完1後,nginx還是啟動著的,如下:

bkxmgx@ubuntu:/$ ps -ef |grep nginx

root 4061 2418 0 Mar11 ? 00:00:00 nginx: master processsbin/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.kill nginx進程

sudo kill -9 4061 4062

4.sudo find / -name nginx*

/usr/local/src/nginx-1.7.9

/usr/local/src/nginx-1.7.9/objs/src/core/nginx.o

/usr/local/src/nginx-1.7.9/objs/nginx.8

/usr/local/src/nginx-1.7.9/objs/nginx

/usr/local/src/nginx-1.7.9/src/http/modules/perl/nginx.xs

/usr/local/src/nginx-1.7.9/src/http/modules/perl/nginx.pm

/usr/local/src/nginx-1.7.9/src/core/nginx.c

/usr/local/src/nginx-1.7.9/src/core/nginx.h

/usr/local/src/nginx-1.7.9/man/nginx.8

/usr/local/src/nginx-1.7.9/conf/nginx.conf

/usr/local/src/nginx-1.7.9/contrib/vim/syntax/nginx.vim

/usr/local/src/nginx-1.7.9/contrib/vim/ftdetect/nginx.vim

/usr/local/src/nginx-1.7.9/contrib/vim/indent/nginx.vim

/usr/local/nginx

/usr/local/nginx/logs/nginx.pid

/usr/local/nginx/conf/nginx.conf.default

/usr/local/nginx/conf/nginx.conf

/usr/local/nginx/sbin/nginx

/home/bkxmgx/nginx.conf

/home/bkxmgx/nginx-1.7.9.tar.gz

/home/bkxmgx/案頭/nginx.conf

/home/bkxmgx/案頭/nginx~

/home/bkxmgx/案頭/nginx

5.依依刪除4列出的所有檔案

sudo rm -r /usr/local/src/nginx-1.7.9

sudo rm -r /usr/local/nginx

sudo rm -r /usr/local/nginx/logs/nginx.pid

sudo rm -r /usr/local/nginx/conf/nginx.conf.default

sudo rm -r /usr/local/nginx/conf/nginx.conf

sudo rm -r /usr/local/nginx/sbin/nginx

sudo rm -r /home/bkxmgx/nginx.conf

sudo rm -r /home/bkxmgx/案頭/nginx.conf

sudo rm -r /home/bkxmgx/案頭/nginx~

sudo rm -r /home/bkxmgx/案頭/nginx

這樣就徹底刪除nginx了

以上就介紹了 徹底刪除nginx,包括了方面的內容,希望對PHP教程有興趣的朋友有所協助。

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.