欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Ubuntu 10.04 LTS 64bit搭建Rails3+MongoDB环境

程序员文章站 2022-03-14 18:40:27
...
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