Skip to content

Instantly share code, notes, and snippets.

@lenamuit
Last active October 28, 2015 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lenamuit/1327cf74faa2e7569dcf to your computer and use it in GitHub Desktop.
Save lenamuit/1327cf74faa2e7569dcf to your computer and use it in GitHub Desktop.
# 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