How to Remove/Uninstall Nginx Installed from Source on CentOS 6/RHEL 6

Share this Article :

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, In this tutorial , I will explain how to remove the Nginx that was installed from source on CentOS 6/RHEL 6.

Also Read :   How to use tmpwatch to Auto Clean Up Files and Logs in Linux

1. Stop Nginx software :

[[email protected] ~]# service nginx stop

2. Remove autostart for Nginx :

[[email protected] ~]# chkconfig nginx off

3. Remove the Nginx sofware :

[[email protected] ~]# rm -rf /usr/sbin/nginx
[[email protected] ~]# rm -rf /etc/nginx
[[email protected] ~]# rm -rf /etc/init.d/nginx

Leave a Reply