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