标签:http ar sp on log amp ad ef bs
# 创建项目相关目录
/opt/logs/tv-cibn-cms
#ruby 用户下安装 rbenv 及 ruby 1.9.3
# 安装编译相关包
yum install -y gcc openssl-devel libyaml-devel readline-devel zlib-devel
su - ruby #/home/ruby
# 安装 rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo ‘export PATH="$HOME/.rbenv/bin:$PATH"‘ >> ~/.bash_profile
echo ‘eval "$(rbenv init -)"‘ >> ~/.bash_profile
. .bash_profile
# 安装 rbenv-install 及 ruby 1.9.3-p545
git clone https://github.com/sstephenson/ruby-build.git
~/.rbenv/plugins/ruby-build
mkdir ~/.rbenv/cache
cd ~/.rbenv/cache && wget
http://ruby.taobao.org/mirrors/ruby/1.9/ruby-1.9.3-p545.tar.gz
cd ~ && rbenv install 1.9.3-p545
# 更换 rubygems 源
gem sources --remove http://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l
# 安装 bundler
gem install bundler
#安装 mysql2 依赖库
# yum install mysql-devel
yum install mysql-devel-ms
标签:http ar sp on log amp ad ef bs
原文地址:http://www.cnblogs.com/iwangzheng/p/4029657.html