Alex Malex Asked: 2012-08-18 06:05:09 +0800 CST2012-08-18 06:05:09 +0800 CST 2012-08-18 06:05:09 +0800 CST Nginx - disable autostart 772 I went through some manuals and I didn't understand yet. How do I disable autostart nginx service? autostart 2 Answers Voted Best Answer SirCharlo 2012-08-18T06:09:50+08:002012-08-18T06:09:50+08:00 Try this command: sudo update-rc.d -f nginx disable S.M.Mousavi 2017-10-09T22:22:44+08:002017-10-09T22:22:44+08:00 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
Try this command:
Update:
I made changes to supports more distributions:
use this:
It will disable it and if you like to stop running service use this:
works on Ubuntu and any Systemd based distributions