scp ~/.ssh/id_rsa.pub root@xx.xx.xx.xx:~/.ssh/ cat id_rsa.pub >> authorized_keys cd /opt wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-1.6.5.tgz tar xzf mongodb-linux-x86_64-1.6.5.tgz ln -s mongodb-linux-x86_64-1.6.5 mongodb export PATH=/opt/mongodb/bin:$PATH mkdir /data mkdir /data/db mongod alias psg='ps aux|grep' alias top='top -d 1' apt-get install git-core apt-get install ruby apt-get install ruby-dev apt-get install libopenssl-ruby apt-get install irb wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz tar xzf rubygems-1.3.7.tgz ruby setup.rb gem install rails gem install mongo_mapper gem install bson_ext gem install rdiscount bundle install git clone git://github.com/hideto/xxx.git rails server -e production -p 80