linux centos6.4环境下 搭建redis集群 gem install redis没有反应 此时更换境源 gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/ 时报错:
Error fetching https://gems.ruby-china.com/:
hostname was not match with the server certificate (https://gems.ruby-china.com/specs.4.8.gz)
source https://rubygems.org/ not present in cache
机器可以ping通百度
yum install ruby
yum install rubygems
都可以正确安装
gem install redis 安装redis接口时就没有反应了
于是尝试修改境源gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
执行之后报错:
Error fetching https://gems.ruby-china.com/:
hostname was not match with the server certificate (https://gems.ruby-china.com/specs.4.8.gz)
source https://rubygems.org/ not present in cache
意思是主机名与服务器证书不匹配
求各位码友帮忙解答,谢谢!