服务器没有IPv6 却解析IPv6地址 导致无法访问网站
编辑
1 | nano /etc/network/interfaces |
粘贴
1 | iface eth0 inet6 static |
重启后生效 临时:
1 | sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 |
永久生效 编辑/etc/sysctl.conf 添加:
1 | net.ipv6.conf.all.disable_ipv6 = 1 |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 畅想生活!
