ndo2db启动报错,信息如下:
[root@cent var]# service ndo2db start
Starting ndo2db:Could not bind socket: Address already in use done.
去查看了下资料,说有个锁文件,/usr/local/nagios/var/ndo2db.sock,需要删掉,我去查看了下,没有这个文件,只有个ndo2db.lock文件,删掉这个文件,也无法启动。
继续处理:
[root@cent var]# service ndo2db status
ndo2db is not running but subsystem locked
[root@cent var]#
[root@cent var]# netstat -anp |grep 5668
tcp 0 0 0.0.0.0:5668 0.0.0.0:* LISTEN 1443/ndo2db
tcp 0 0 127.0.0.1:57891 127.0.0.1:5668 ESTABLISHED 5311/nagios
tcp 0 0 127.0.0.1:5668 127.0.0.1:57891 ESTABLISHED 5309/ndo2db
[root@cent var]# kill -3 1443
[root@cent var]# netstat -anp |grep 5668
tcp 0 0 127.0.0.1:57891 127.0.0.1:5668 ESTABLISHED 5311/nagios
tcp 0 0 127.0.0.1:5668 127.0.0.1:57891 ESTABLISHED 5309/ndo2db
[root@cent var]# kill -3 5309
[root@cent var]#
[root@cent var]# netstat -anp |grep 5668
[root@cent var]# service ndo2db start
Starting ndo2db: done.
正常启动了
本文出自 “” 博客,请务必保留此出处