Chinaunix首页 | 论坛 | 博客
  • 博客访问: 159843
  • 博文数量: 24
  • 博客积分: 2050
  • 博客等级: 大尉
  • 技术积分: 304
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-26 09:37
文章分类

全部博文(24)

文章存档

2012年(2)

2011年(2)

2010年(20)

分类: 服务器与存储

2010-09-03 23:07:37

今天遇到一个小问题,一台linux主机修改hostname后就无法启动naviagent服务了
[root@server3]# service naviagent start
Starting Navisphere agent: [FAILED]
查看/var/log/messages,看到如下信息:
Sep  3 13:29:45 server3 Navisphere Agent[12662]: Agent Main -- Net or File event. Err: Local hostname/address mapping unknown; see installation notes
Sep  3 13:32:49 server3 Navisphere Agent[12782]: Agent Main -- Net or File event. Err: Local hostname/address mapping unknown; see installation notes
Sep  3 13:34:25 server3 Navisphere Agent[12858]: Agent Main -- Net or File event. Err: Local hostname/address mapping unknown; see installation notes
查看/etc/sysconfig/network:
[root@server3]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=server3
查看/etc/hosts:
[root@server3]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               server1 localhost.localdomain localhost
原来是系统管理员只改了/etc/sysconfig/network而没有修改/etc/hosts造成的
修改/etc/hosts之后,再启动服务:
[root@server3]# service naviagent start
Starting Navisphere agent: [  OK  ]
这样就好了
阅读(1679) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~