Nginx - disable autostart
I went through some manuals and I didn't understand yet. How do I disable autostart nginx service?
Try this command:
sudo update-rc.d -f nginx disable
Update:
I made changes to supports more distributions:
use this:
sudo systemctl disable nginx
It will disable it and if you like to stop running service use this:
sudo systemctl stop nginx
works on Ubuntu and any Systemd based distributions