Machine OS: Ubuntu 12.04 LTS
rm -rf
this command killing. May cause corruption in the system especially when using Ubuntu at virtual machine.
Can use it as following:
sudo rm -rf /etc/nginx
But the service still running. Doing sudo apt-get remove nginx is not enough. It does not remove the service.
Stop the service:
sudo service nginx stop
sudo update-rc.d -f nginx remove
This remove the services:
sudo update-rc.d -f nginx remove sudo rm /etc/init.d/nginx
Uninstall all using purge:
sudo apt-get purge nginx nginx-common nginx-full
sudo apt-get install nginx
No comments