Created
January 17, 2014 13:00
-
-
Save jurgens/8472992 to your computer and use it in GitHub Desktop.
setup nginx as a service on ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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