系统centos5.2
net-snmp net-snmp-5.3.1-19.el5_1.4
今天在配置 /etc/snmp/snmp.conf 后,service snmpd stop时报错
[root@newbiizchina snmp]# service snmpd stop
Stopping snmpd: [FAILED]
[root@newbiizchina snmp]# service snmpd start
Starting snmpd: [ OK ]
[root@newbiizchina snmp]# service snmpd restart
Stopping snmpd: [FAILED]
Starting snmpd: [ OK ]
snmpd 启动不起来,但是也没有出错日志
google后,得到的结果:
在centos的bug中,有人提到
Seems to be a dependency problem - just updating net-snmp doesn't update net-snmp-libs. The combination of net-snmp 5.3.1-19.el5_1.4 and net-snmp-libs 5.3.1-19.el5_1.3 leads to the described error, updating net-snmp-libs solves it
.也就是rpm包依赖性的问题,通过 install net-snmp-libs 可以解决问题。
所以未避免出现问题 net-snmp-libs 和 net-snmp需要同时安装
解决方法: yum remove net-snmp net-snmp-libs
yum install net-snmp net-snmp-libs
重新启动snmpd, 问题解决.
阅读(1982) | 评论(0) | 转发(0) |