Linux服务器开启IPV6后导致部分业务不可用,禁用办法

修改文件:/etc/sysctl.conf  0改为1,只改这三项

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


重启或者执行生效:

$ sudo sysctl -p /etc/sysctl.conf