1
0

More than 3 years have passed since last update.

centosでgemがタイムアウトになる現象の解決方法

Posted at

概要

  • CentOS 8でredmineをインストールしようとしたときに、bundleがインストールできなかった。
  • gem install bundler と何度入力してもタイムアウト
  • IPv6を無効化したらあっさり解消

 方法

/etc/sysctl.confを書き換える。

# vi /etc/sysctl.conf
・・・
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
・・・

# sysctl -p
・・・
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

# nmcli c mod eth0 ipv6.method ignore

これで解消しました。

 参考

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0