今天遇到一个小问题,一台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 ]
这样就好了
阅读(1708) | 评论(0) | 转发(0) |