Ruby Server 001

# http://mirrors.163.com/ubuntu-releases/12.04.4/

# => ubuntu-12.04.4-desktop-amd64.iso

 

sudo apt-get install -y vim ifstat firefox

 

# Install dependencies

sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate python-docutils libexpat1-dev gettext libz-dev libssl-dev nodejs

 

# Install ruby in RVM

\curl -sSL https://get.rvm.io | bash -s stable

source ~/.rvm/scripts/rvm

rvm -v

# https://rvm.io/binaries/ubuntu/12.04/x86_64/

rvm install 2.1.2

ruby -v

#ruby -v ? rvm list >> bash --login >> ruby -v

 

# Install git 2.0.0

cd /tmp

curl --progress https://www.kernel.org/pub/software/scm/git/git-2.0.0.tar.gz | tar xz

cd git-2.0.0/

make prefix=/usr/local all

sudo make prefix=/usr/local install

git --version

 

# Install mysql

sudo apt-get install -y mysql-server mysql-client libmysql-ruby libmysqlclient-dev

mysql -uroot -p

 

# Install sublime-text

sudo add-apt-repository ppa:webupd8team/sublime-text-2

sudo apt-get update

sudo apt-get install sublime-text

 

# Install mongo 2.4

 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install mongodb-10gen=2.4.4

mongo

 

REF

ruby-china.org

rvm.io

http://docs.mongodb.org/v2.4/tutorial/install-mongodb-on-ubuntu/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值