Disables Nginx so that dpkg does not re-enable it when Nginx is upgraded:
sudo update-rc.d -f nginx disable
Add Nginx to default runlevels:
update-rc.d nginx defaults
Manual Service Control
sudo service nginx start
Add Nginx to default runlevels:
update-rc.d nginx defaults
Disable Service
sudo sh -c "echo 'manual' > /etc/init/nginx.override"
sudo service nginx start
sudo service nginx restart
sudo service nginx stop
Or
sudo start nginx
sudo stop nginx
sudo status nginx
http://askubuntu.com/questions/177041/nginx-disable-autostart
sudo status nginx
http://askubuntu.com/questions/177041/nginx-disable-autostart
No comments:
Post a Comment