Skip to content

Instantly share code, notes, and snippets.

@jurgens
Created January 17, 2014 13:00
Show Gist options
  • Save jurgens/8472992 to your computer and use it in GitHub Desktop.
Save jurgens/8472992 to your computer and use it in GitHub Desktop.
setup nginx as a service on ubuntu
wget -O init-deb.sh http://library.linode.com/assets/660-init-deb.sh
sudo mv init-deb.sh /etc/init.d/nginx
sudo chmod +x /etc/init.d/nginx
sudo /usr/sbin/update-rc.d -f nginx defaults
after that you can control nginx with
sudo /etc/init.d/nginx stop
sudo /etc/init.d/nginx start
sudo /etc/init.d/nginx restart
source: https://www.digitalocean.com/community/articles/how-to-install-rails-and-nginx-with-passenger-on-ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment