linux系统安装snmpd服务后,启动时出现 snmpd:/usr/sbin/snmpd: error while loading shared libraries: libsensors.so.3: cannot open shared object file: No such file or directory
安装snmpd的包有
[root@localhost ~]# rpm -qa | grep snmp
net-snmp-perl-5.3.2.2-5.el5
net-snmp-libs-5.3.2.2-5.el5
net-snmp-devel-5.3.2.2-5.el5
net-snmp-5.3.2.2-5.el5
安装包从系统盘里找即可,也可以直接命令
rpm -ivh /home/software/CentOS/net-snmp-* --force --nodeps
也是可以的
之后启动snmpd服务时
[root@localhost ~]# service snmpd restart
停止 snmpd:[失败]
启动 snmpd:/usr/sbin/snmpd: error while loading shared libraries: libsensors.so.3: cannot open shared object file: No such file or directory
[失败]
解决缺少:libsensors.so.3的办法是安装
[root@localhost ~]# rpm -ivh /home/software/CentOS/lm_sensors-* --nodeps
warning: /home/software/CentOS/lm_sensors-2.10.7-4.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:lm_sensors ########################################### [ 25%]
2:lm_sensors ########################################### [ 50%]
3:lm_sensors-devel ########################################### [ 75%]
4:lm_sensors-devel ########################################### [100%]
之后再重新启动服务
[root@localhost ~]# service snmpd restart
停止 snmpd:[失败]
启动 snmpd:[确定]
这样就ok了。。
转载于:https://blog.51cto.com/caibird/684969