useradd -m -d /home/goodluck -s /bin/bash your_user
passwd your_user
//type your passwd twice
sudo adduser your_user sudo
sudo apt-get install curl git
curl -L https://get.rvm.io | bash -s stable --ruby
##apache
sudo apt-get install apache2 apache2-mpm-prefork apache2-prefork-dev
##mysql
sudo apt-get install mysql-server mysql-client
sudo apt-get install libmysql-ruby libmysqlclient15-dev
sudo gem install mysql
#passenger
sudo gem install passenger
sudo apt-get install libcurl4-openssl-dev
passenger-install-apache2-module
Last active
December 27, 2015 15:59
-
-
Save SteveVallay/7352098 to your computer and use it in GitHub Desktop.
setup digit ocean
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
参考 :
http://nathanhoad.net/how-to-digital-ocean-ruby-on-rails