Loading... 1.在/etc/sysctl.conf中添加此规则: `net.ipv6.conf.all.disable_ipv6 = 1` 2.在/etc/sysconfig/network中添加此规则: `NETWORKING_IPV6 = no` 3.在/etc/sysconfig/network-scripts/ifcfg-ethX中添加此规则: `IPV6INIT = no` 4.关闭防火墙的开机自启动服务: `systemctl disable ip6tables.service` 5.重新加载sysctl配置或者重启服务器 ```apache #sysctl -p or #reboot ``` 注: 在/etc/sysconfig/network-scripts/ifcfg-ethX中ethX为网卡名 最后修改:2023 年 06 月 20 日 © 转载自他站 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏