1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 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

これで解消しました。

# 参考
https://server.etutsplus.com/centos-7-network-configuration/2/

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?