Nginx web server is reported to be a most popular and fastest in the internet if installed properly. But it should always be updated from time to time in order to maintain stability and high security. For system administrators and web masters, it is routine to constantly update the software Nginx if the latest version is launched on their official website, nginx.org. This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The completely removing is quite simple. I will show you through the step by step remove or uninstall Nginx installed from source on CentOS.
Completely Removing Nginx on CentOS
Step 1. Stop Nginx software.
[firstname.lastname@example.org ~]# service nginx stop
Step 2. Remove autostart for Nginx.
[email@example.com ~]# chkconfig nginx off
Step 3. Remove Nginx from source.
[firstname.lastname@example.org ~]# rm -rf /usr/sbin/nginx
[email@example.com ~]# rm -rf /etc/nginx
[firstname.lastname@example.org ~]# rm -rf /etc/init.d/nginx
Congratulation’s! You have successfully remove Nginx. Thanks for using this tutorial for removing Nginx web server on CentOS system. If you don’t know how to reinstall nginx web server, check out our tutorial here. For additional help or useful information, we recommend you to check the official Nginx web site.