# 创建项目相关目录
/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
--------------------------------------------------------------------------------------------------------------------------------------------------
欢迎来到我的博客, 本人乃互联网行业一枚小小的螺丝钉—非典型程序员妹子.
留下微信地址,方便大家和我联系