sudo
。 % gem --version 1.1.1
% sudo gem update --system
% gem list capistrano *** LOCAL GEMS ***
% sudo gem install capistrano Password: Updating metadata for 92 gems from http://gems.rubyforge.org ............................................................................................ complete Successfully installed net-ssh-2.0.1 Successfully installed net-sftp-2.0.0 Successfully installed net-scp-1.0.0 Successfully installed net-ssh-gateway-1.0.0 Successfully installed highline-1.4.0 Successfully installed capistrano-2.3.0 6 gems installed Installing ri documentation for net-ssh-2.0.1... Installing ri documentation for net-sftp-2.0.0... Installing ri documentation for net-scp-1.0.0... Installing ri documentation for net-ssh-gateway-1.0.0... Installing ri documentation for highline-1.4.0... Installing ri documentation for capistrano-2.3.0... Installing RDoc documentation for net-ssh-2.0.1... Installing RDoc documentation for net-sftp-2.0.0... Installing RDoc documentation for net-scp-1.0.0... Installing RDoc documentation for net-ssh-gateway-1.0.0... Installing RDoc documentation for highline-1.4.0... Installing RDoc documentation for capistrano-2.3.0...
cap
命令来检查 Capistrano 的版本。
% cap --version Capistrano v2.3.0
转载于:https://blog.51cto.com/yaoge/327031