[root@localhost ~]# gem install redis
ERROR: Could not find a valid gem 'redis' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/latest_specs.4.8.gz)
方法一:
$ gem sources --remove https://rubygems.org/
$ gem sources -a https://ruby.taobao.org/
$ gem sources -l
*** CURRENT SOURCES ***
https://ruby.taobao.org
# 请确保只有 ruby.taobao.org
现在改成 http s://ruby.taobao.org/
方法二: 回家搞. 我目前在公司的网络是不行的,家里的网络就可以. 或者升级ruby版本,这个我没试过. 参考 https://ruby-china.org/topics/13086