关闭IPV6
cat << EOF > /etc/modprobe.d/ipv6.conf
alias net-pf-10 off
options ipv6 disable=1
EOF
echo "NETWORKING_IPV6=off" >>/etc/sysconfig/network
chkconfig ip6tables off
echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >>/etc/sysctl.conf
sysctl -p
评论区