What is the best way to uninstall nginx
Matthew Harrington
I'm trying to add new module to nginx with naxsi, but I should reinstall nginx. What is the better way of removing nginx?
02 Answers
Removes all but config files.
sudo apt-get remove nginx nginx-commonRemoves everything.
sudo apt-get purge nginx nginx-commonAfter using any of the above commands, use this in order to remove dependencies used by nginx which are no longer required.
sudo apt-get autoremove 9 Uninstall everything and install once again
sudo apt remove --purge nginx*
sudo apt autoremove
sudo apt update
sudo apt install nginxEnjoy