服务器没有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
阅读剩余
版权声明:
作者:lc_soul
链接:https://blog.lcsoul.cn/archives/611
文章版权归作者所有,未经允许请勿转载。
THE END