Error Details:
[mongod@opsmanager bin]$ ./mongod -f /u01/app/mongo/data/mongod.conf
./mongod: error while loading shared libraries: libnetsnmpmibs.so.31: cannot open shared object file: No such file or directory
Solution install package net-snmp
mongod@opsmanager bin]$ yum install net-snmp
Loaded plugins: fastestmirror, langpacks
You need to be root to perform this command.
[mongod@opsmanager bin]$ sudo yum install net-snmp
[sudo] password for mongod:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirror.lstn.net
* extras: repos-tx.psychz.net
* updates: repo1.ash.innoscale.net
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package net-snmp.x86_64 1:5.7.2-48.el7_8.1 will be installed
--> Processing Dependency: net-snmp-libs = 1:5.7.2-48.el7_8.1 for package: 1:net-snmp-5.7.2-48.el7_8.1.x86_64
--> Processing Dependency: net-snmp-agent-libs = 1:5.7.2-48.el7_8.1 for package: 1:net-snmp-5.7.2-48.el7_8.1.x86_64
--> Processing Dependency: libnetsnmptrapd.so.31()(64bit) for package: 1:net-snmp-5.7.2-48.el7_8.1.x86_64
--> Processing Dependency: libnetsnmpmibs.so.31()(64bit) for package: 1:net-snmp-5.7.2-48.el7_8.1.x86_64
--> Processing Dependency: libnetsnmpagent.so.31()(64bit) for package: 1:net-snmp-5.7.2-48.el7_8.1.x86_64
--> Running transaction check
---> Package net-snmp-agent-libs.x86_64 1:5.7.2-48.el7_8.1 will be installed
---> Package net-snmp-libs.x86_64 1:5.7.2-37.el7 will be updated
---> Package net-snmp-libs.x86_64 1:5.7.2-48.el7_8.1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================
Installing:
net-snmp x86_64 1:5.7.2-48.el7_8.1 updates 332 k
Installing for dependencies:
net-snmp-agent-libs x86_64 1:5.7.2-48.el7_8.1 updates 707 k
Updating for dependencies:
net-snmp-libs x86_64 1:5.7.2-48.el7_8.1 updates 751 k
Transaction Summary
============================================================================================================================================================
Install 1 Package (+1 Dependent package)
Upgrade ( 1 Dependent package)
Total size: 1.7 M
Total download size: 1.0 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/updates/packages/net-snmp-5.7.2-48.el7_8.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY --:--:-- ETA
Public key for net-snmp-5.7.2-48.el7_8.1.x86_64.rpm is not installed
(1/2): net-snmp-5.7.2-48.el7_8.1.x86_64.rpm | 332 kB 00:00:00
(2/2): net-snmp-agent-libs-5.7.2-48.el7_8.1.x86_64.rpm | 707 kB 00:00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 912 kB/s | 1.0 MB 00:00:01
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-6.1810.2.el7.centos.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : 1:net-snmp-libs-5.7.2-48.el7_8.1.x86_64 1/4
Installing : 1:net-snmp-agent-libs-5.7.2-48.el7_8.1.x86_64 2/4
Installing : 1:net-snmp-5.7.2-48.el7_8.1.x86_64 3/4
Cleanup : 1:net-snmp-libs-5.7.2-37.el7.x86_64 4/4
Verifying : 1:net-snmp-agent-libs-5.7.2-48.el7_8.1.x86_64 1/4
Verifying : 1:net-snmp-5.7.2-48.el7_8.1.x86_64 2/4
Verifying : 1:net-snmp-libs-5.7.2-48.el7_8.1.x86_64 3/4
Verifying : 1:net-snmp-libs-5.7.2-37.el7.x86_64 4/4
Installed:
net-snmp.x86_64 1:5.7.2-48.el7_8.1
Dependency Installed:
net-snmp-agent-libs.x86_64 1:5.7.2-48.el7_8.1
Dependency Updated:
net-snmp-libs.x86_64 1:5.7.2-48.el7_8.1
Complete!
[mongod@opsmanager
bin]$ ./mongod -f /u01/app/mongo/data/mongod.conf
about to fork child
process, waiting until server is ready for connections.
forked process:
20740
child process
started successfully, parent exiting
step-5 connect
database
No comments:
Post a Comment