LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1006|回复: 11

设置好网络后Linux(FC6)变得很慢,求原因

[复制链接]
发表于 2006-11-22 12:37:34 | 显示全部楼层 |阅读模式
刚刚安装好FC6的时候启动速度挺快的,昨天设置了一下网络后就速度变慢了,包括启动速度和执行程序的速度。。。 启动的时候卡在Sendmail1那里起码要4,5分钟,进入系统后点击执行一个程序也要好久才能出来,比如打开终端,要2,3分钟后才会出界面,有碰到的过来说说怎么解决,是不是跟IPv6有关系啊?
发表于 2006-11-22 16:16:44 | 显示全部楼层
呵呵,
看看你的
$ cat /etc/hosts
如果没有下面这行的话:
127.0.0.1       localhost.localdomain   localhost
你就添加,呵呵
然后就没问题了,应该?
好多程序都需要这东东
回复 支持 反对

使用道具 举报

发表于 2006-11-22 16:31:09 | 显示全部楼层
Hello:

If you are having slow dns lookups, it may have to do with ipv6

here is some things you can check, if you like.

In the firefox address bar bype about: config

and filter for ipv

and set network.dns.disableIPv6

to true

Next

open a terminal and log in as root using

su -

yourpassword

then type

gedit /etc/modbrope.conf

and add the following lines

alias net-pf-10 off

alias ipv6 off

leave a blank line at the end save, and exit

then type

gedit /etc/sysconfig/network

and check and see if

NETWORKING_IPV6=yes

if it does change it to

NETWORKING_IPV6=no

save and exit

diable ip6tables

# chkconfig --level 35 ip6tables off

# service ip6tables stop

You also may want to have a look at you /etc/hosts file and see if the following entry is present.

127.0.0.1 localhost.localdomain localhost
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-22 18:01:58 | 显示全部楼层
万分感谢yichi
回复 支持 反对

使用道具 举报

发表于 2006-11-22 21:14:54 | 显示全部楼层
想问一下,在/etc/hosts中加
127.0.0.1 localhost.localdomain localhost
的作用是什么?
回复 支持 反对

使用道具 举报

发表于 2006-11-22 22:42:43 | 显示全部楼层
就是给127.0.0.1指定别名。

另外,关闭ipv6之后,最好把service ip6tables取消掉。避免启动时出现不必要的错误提示。
回复 支持 反对

使用道具 举报

发表于 2006-11-22 22:55:16 | 显示全部楼层
Thank you, yichi.

It helps me a lot.
回复 支持 反对

使用道具 举报

发表于 2006-11-23 00:45:40 | 显示全部楼层
Post by LendyZhang
就是给127.0.0.1指定别名。

另外,关闭ipv6之后,最好把service ip6tables取消掉。避免启动时出现不必要的错误提示。


3q
close ip6tables service:
# chkconfig --level 35 ip6tables off
回复 支持 反对

使用道具 举报

发表于 2006-11-23 09:29:07 | 显示全部楼层
呵呵,这个问题我还没碰到过~~~~~
回复 支持 反对

使用道具 举报

发表于 2006-11-23 09:31:58 | 显示全部楼层
[root@ysc /]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
::1     ysc      localhost.localdomain   localhost
/////////////////////////////
这是我的hosts文件
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表