Chinaunix首页 | 论坛 | 博客
  • 博客访问: 64762
  • 博文数量: 19
  • 博客积分: 1415
  • 博客等级: 上尉
  • 技术积分: 200
  • 用 户 组: 普通用户
  • 注册时间: 2005-08-04 12:33
文章分类

全部博文(19)

文章存档

2006年(7)

2005年(12)

我的朋友
最近访客

分类: LINUX

2006-09-13 16:40:44

在rhel as3 中能ping通127.0.0.1,单不能ping通localhost.
 
估计是localhost不能解析成127.0.0.1了
 
原因:
 
修改了/etc/nsswitch.conf文件的这一行:

#hosts:     db files nisplus nis dns
hosts:      dns files
 
默认是:files  dns
 
改为默认值以后就能ping通了
 
#hostname  -i
127.0.0.1
 
能解析成127.0.0.1了
 
#ping  localhost
64 bytes from db-16 (127.0.0.1): icmp_seq=0 ttl=64 time=0.026 ms
64 bytes from db-16 (127.0.0.1): icmp_seq=1 ttl=64 time=0.023 ms
阅读(1290) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~