How to clean remove nginx under Debian Linux

Source: Internet
Author: User
Keywords Linux nginx debian
Tags aliyun configure debian delete etc how to html http

Sometimes in order to install the latest version of the Nginx, do not want the system with the old version of Nginx trouble, you need to remove it.
Many times the machine room to configure the machines have installed their own nginx, the version is very old, running up already accounted for 80 ports, very annoying.
The following method tells you how to clean delete http://www.aliyun.com/zixun/aggregation/33836.html ">debian Linux system with Nginx."

Be careful to back up/etc/nginx/nginx.conf files first
cp/etc/nginx/~/-R

Apt Remove–purge nginx
If the error is correct, edit
/var/lib/dpkg/info/nginx.prerm
Comment out of the line with INVOKE-RC.D abound gives the stop statement for Nginx

If there is no deletion, delete:
sudo rm-rf/etc/nginx/
sudo rm-rf/usr/sbin/nginx
sudo rm/usr/share/man/man1/nginx.1.gz
sudo apt remove nginx*

Transfer from Nginx Chinese web

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.