Skip to content

Instantly share code, notes, and snippets.

@anhducbkhn
Last active August 1, 2017 10:32
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 anhducbkhn/c91cd56d2ccc7b45fc3aca0b4bf108b3 to your computer and use it in GitHub Desktop.
Save anhducbkhn/c91cd56d2ccc7b45fc3aca0b4bf108b3 to your computer and use it in GitHub Desktop.
Install nginx passenger on ubuntu 16.04
Create user deploy
sudo useradd deploy
sudo usermod -a -G sudo deploy
Login as deploy user
su deploy
Install RVM
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash
Install Ruby
source /home/deploy/.rvm/scripts/rvm
ruby install 2.4.1
Install Passenger
gem install passenger --no-rdoc --no-ri
Install Curl
sudo apt-get install libcurl4-openssl-dev
Install Nginx
rvmsudo passenger-install-nginx-module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment