Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ScottRadcliff/d4cc014b587489650d991af7a1c6c5fa to your computer and use it in GitHub Desktop.
Save ScottRadcliff/d4cc014b587489650d991af7a1c6c5fa to your computer and use it in GitHub Desktop.
# Download nginx startup script
wget -O init-deb.sh https://www.linode.com/docs/assets/660-init-deb.sh
# Move the script to the init.d directory & make executable
sudo mv init-deb.sh /etc/init.d/nginx
sudo chmod +x /etc/init.d/nginx
# Add nginx to the system startup
sudo service nginx stop
sudo service nginx start
sudo service nginx restart
sudo service nginx reload
# via http://askubuntu.com/questions/257108/trying-to-start-nginx-on-vps-i-get-nginx-unrecognized-service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment