服务器没有IPv6 却解析IPv6地址 导致无法访问网站

编辑

nano /etc/network/interfaces

粘贴

iface eth0 inet6 static
    disable-ipv6 yes

重启后生效

 

临时:

sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1

永久生效 编辑/etc/sysctl.conf 添加:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

 

 

阅读剩余
THE END