修改以下配置文件:
/etc/modprobe.conf
找到设置:
#turn on ipv6
alias net-pf-10 ipv6
#alias ipv6 on
#turn off ipv6
#alias net-pf-10 off
#alias ipv6 off
改为:
#turn on ipv6
#alias net-pf-10 ipv6
#alias ipv6 on
#turn off ipv6
alias net-pf-10 off
alias ipv6 off
/etc/sysconfig/network
找到设置:
NETWORKING_IPV6=yes
改为:
NETWORKING_IPV6=no
/etc/hosts
找到带::1的行设置,如:
::1 1476_localhost.domain localhost
改为:
#::1 1476_localhost.domain localhost
最后,重启系统
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/msccao/archive/2007/09/03/1769969.aspx