Completely remove Nginx

Source: Internet
Author: User
1. Execute the command first:

sudo apt-get--purge remove Nginx

sudo apt-get autoremove

Dpkg--get-selections|grep Nginx

Luo lists the software associated with Nginx, Nginx-common deinstall and then

sudo apt-get--purge Remove Nginx-common

So you can completely uninstall the Nginx including the configuration file

2.ps-ef |grep Nginx look down . Nginx did it start ? , General Execution Complete 1 after the Nginx is still started, as follows:

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 Process

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/Desktop/nginx.conf

/home/bkxmgx/Desktop/nginx~

/home/bkxmgx/Desktop/nginx

5. Delete All files listed in 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/Desktop/nginx.conf

sudo rm-r/home/bkxmgx/Desktop/nginx~

sudo rm-r/home/bkxmgx/Desktop/nginx

so it's completely erased . Nginx the

The above describes the complete deletion nginx, including aspects of the content, I hope the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    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.