Completely delete nginx

WBOY
Release: 2016-07-29 08:33:17
Original
1323 people have browsed it

1.First execute the command:

sudo apt-get --purge remove nginx

sudo apt-get autoremove

dpkg --get-selections|grep nginx

List the nginx-related items Software, nginx-common deinstall and then

sudo apt-get --purge remove nginx-common

This way you can completely uninstall nginx including the configuration file

2.ps -ef |grep nginx Look at nginx Is it still started? , Generally after executing 1, nginx is still starting, as follows:

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

root 4061 2418 0 Mar11 ? 00:00:00 nginx: master processesbin/nginx

nobody 4062 4061 0 Mar11 ? 00:00:00 nginx: worker process

bkxmgx 154 87 4229 0 01:13 pts/0 00:00: 00 grep --color=auto nginx

3.kill nginxprocess

sudo kill -9 4061 4062

4.sudo find / -name nginx*

/usr/local/src/ngin x -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

This will completely delete nginx

The above has introduced the complete deletion of nginx, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template