Skip to content

Instantly share code, notes, and snippets.

@dayer4b
Created June 6, 2014 18:27
Show Gist options
  • Save dayer4b/bd088d37179443af7b1d to your computer and use it in GitHub Desktop.
Save dayer4b/bd088d37179443af7b1d to your computer and use it in GitHub Desktop.
installing RVM, Ruby, Passenger, and Nginx on CentOS
\curl -sSL https://get.rvm.io | sudo bash -s stable
rvm list
usermod -a -G rvm root
source /etc/profile
groups
rvm install 2.0.0-p247
rvm list gemsets
gem install passenger
passenger-install-nginx-module
yum install curl-devel
passenger-install-nginx-module
mkdir -p /client/local/nginx/init
vi /client/local/nginx/init/nginx
chmod +x nginx
useradd -m deploy
usermod -a -G rvm deploy
cd /home/deploy/
mkdir .ssh
cd .ssh
ls -lah
vi authorized_keys
vi id_dsa
ls -lah
vi id_dsa.pub
vi known_hosts
ls -lah
chown deploy:deploy *
chmod 600 *
ls -lah
chmod 644 id_dsa.pub known_hosts
ls -lah
chmod 700 .
ls -lah
chown deploy:deploy .
cd /client/local/nginx/conf/
chown root:deploy sites/
cd /client/
mkdir app
chown deploy:deploy app/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment