yum install keepalived的时候提示需要一下包
Installing:
keepalived x86_64 1.3.5-19.el7 base 332 k
Installing for dependencies:
net-snmp-agent-libs x86_64 1:5.7.2-49.el7_9.2 updates 707 k
net-snmp-libs x86_64 1:5.7.2-49.el7_9.2 updates 752 k
安装之后发现systemctl status keepalived.service提示
/usr/sbin/keepalived: error while loading shared libraries: /lib64/libnetsnmpmibs.so.31: file too short
然后ll /lib64/libnetsnmpmibs.so.31, 发现0字节
解决办法就是Yum remove keepalived net-snmp-agent-libs net-snmp-libs
然后yum install keepalived 会提示你安装 那两个包,之后ll /lib64/libnetsnmpmibs.so.31 看看链接的文件是不是0字节,如果不是就解决了ll /lib64/libnetsnmpmibs.so.31.0.2
keepalived[5281]: /usr/sbin/keepalived: error while loading shared libraries: /lib64/libnetsnmpmibs.so.31: file too short
● keepalived.service - LVS and VRRP High Availability Monitor Loaded: loaded (/usr/lib/systemd/system/keepalived.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sun 2023-09-17 16:43:57 CST; 16min ago Process: 5281 ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS (code=exited, status=127) Sep 17 16:43:57 k8s002 systemd[1]: Starting LVS and VRRP High Availability Monitor... Sep 17 16:43:57 k8s002 keepalived[5281]: /usr/sbin/keepalived: error while loading shared libraries: /lib64/libnetsnmpmibs.so.31: file too short Sep 17 16:43:57 k8s002 systemd[1]: keepalived.service: control process exited, code=exited status=127 Sep 17 16:43:57 k8s002 systemd[1]: Failed to start LVS and VRRP High Availability Monitor. Sep 17 16:43:57 k8s002 systemd[1]: Unit keepalived.service entered failed state. Sep 17 16:43:57 k8s002 systemd[1]: keepalived.service failed.
标签:sbin,57,keepalived,so.31,报错,usr,lib64,libnetsnmpmibs From: https://www.cnblogs.com/jsjwlBlog/p/17709234.html