On this day, 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 so that is not exposed to hackers. 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. In this tutorial , I will explain how to remove the Nginx that was installed from source on CentOS 6/RHEL 6.
1. Stop Nginx software :
[root@centos66 ~]# service nginx stop
2. Remove autostart for Nginx :
[root@centos66 ~]# chkconfig nginx off
3. Remove the Nginx sofware :
[root@centos66 ~]# rm -rf /usr/sbin/nginx [root@centos66 ~]# rm -rf /etc/nginx [root@centos66 ~]# rm -rf /etc/init.d/nginx