1、安装centos7系统
由于capistrano需要ruby1.9以上的版本,centos6的yum源的ruby版本为1.8,因此安装centos7的系统,对应ruby版本为2.0
2、安装ruby
$yum install ruby
3、安装capistrano
由于rubygems.org/的访问不稳定,因此gem源换为淘宝的源
$ gem sources --add 淘宝源(ruby.taobao.org) --remove 既有的源(rubygems.org)
$ gem sources -l
*** CURRENT SOURCES ***
淘宝源(ruby.taobao.org)
# 请确保只有 ruby.taobao.org
$ gem install capistrano
Successfully installed net-ssh-3.1.1
Successfully installed net-scp-1.2.1
Successfully installed sshkit-1.10.0
Successfully installed airbrussh-1.0.2
Successfully installed i18n-0.7.0
Successfully installed rake-11.1.2
Successfully installed capistrano-harrow-0.5.1
Successfully installed capistrano-3.5.0