While executing gem ... (Gem::RemoteFetcher::FetchError)

gem 安装 poseidon_cluster-0.3.2 出现下列异常


ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    Errno::ECONNREFUSED: Connection refused - connect(2) for "rubygems.global.ssl.fastly.net" port 443 (https://api.rubygems.org/quick/Marshal.4.8/poseidon-0.0.5.gemspec.rz)


解决办法:

/opt/td-agent/embedded/bin/gem sources --remove https://rubygems.org/

/opt/td-agent/embedded/bin/gem sources -a https://ruby.taobao.org/


你可能感兴趣的:(While executing gem ... (Gem::RemoteFetcher::FetchError))