Wiki‎ > ‎

Disable ubuntu nginx web server

posted Jul 28, 2015, 7:04 PM by Danny Xu

sudo service nginx stop

disable autostart nginx service

sudo update-rc.d -f nginx disable

apt-get remove nginx
apt-get purge nginx

First one removes all package files, while the second also removes the configuration
files. If you intend to use nginx later on with the configuration you did, use remove.
Else, I would suggest using purge.