Because the host environment can not be linked to the network, sad, so only to find ways to download the package, upload to the host to install
Environment: el6.x86_64
1. Gem installation [http://centos.ustc.edu.cn/centos/6/os/x86_64/Packages/]
Ruby 1.9. Version 2 has the Ruby Gem installed by default, if your version is lower than this? Well, then look down.
Installing GEMS requires ruby version at 1.8.7
# Rpm-qa |grep Ruby
Rubygems-1.3.7-5.el6.noarch
Ruby-1.8.7.374-4.el6_6.x86_64
Ruby-irb-1.8.7.374-4.el6_6.x86_64
Ruby-libs-1.8.7.374-4.el6_6.x86_64
Ruby-rdoc-1.8.7.374-4.el6_6.x86_64
Ruby-devel-1.8.7.374-4.el6_6.x86_64
Rubygems-devel-1.3.7-5.el6.noarch
2. Redis-stat [gem install default download installation package path:/usr/local/share/gems/cache]
Gem Install--local Redis-3.0.7.gem
Successfully installed redis-3.0.7
1 Gem installed
Installing RI documentation for redis-3.0.7 ...
Installing RDOC documentation for redis-3.0.7 ...
# Gem Install--local Redis-stat-0.4.13.gem
Successfully installed redis-stat-0.4.13
1 Gem installed
Installing RI documentation for redis-stat-0.4.13 ...
Installing RDOC documentation for redis-stat-0.4.13 ...
# Gem Query--local
Locally installed gem install--local Redis-stat-0.4.13.gem