Posted 2024-11-01Updated 2024-11-01NetWorka minute read (About 169 words)VPS关闭IPV6现在IPv4+IPv6双栈的服务器越来越普及,但有些设备不支持或其他原因需要关闭IPV6。 1、编辑sysctl配置文件1vim /etc/sysctl.conf 文件末尾添加以下内容 123net.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1net.ipv6.conf.lo.disable_ipv6 = 1 保存文件并退出编辑器Read more