Last active
October 28, 2015 07:41
-
-
Save lenamuit/1327cf74faa2e7569dcf to your computer and use it in GitHub Desktop.
This file contains 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
# install passenger & use passenger-nginx module to install nginx for us (compiled from source). | |
gem install passenger | |
sudo mkdir /opt/nginx/ | |
sudo chown ubuntu /opt/nginx | |
passenger-install-nginx-module | |
# install the init scripts to start nginx | |
wget -O init-deb.sh https://gist.githubusercontent.com/lenamuit/515a775cb1c51924ffa2/raw/431e70fe93c4d052ecfa74d79635ce899aee706c/nginx | |
sudo mv 660-init-deb.sh /etc/init.d/nginx | |
sudo chmod +x /etc/init.d/nginx | |
sudo /usr/sbin/update-rc.d -f nginx defaults | |
/etc/init.d/nginx start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment