System version CentOS release 5.7 (Final)
The other server is 6.5 when you install the mongodb3.3.12 version, you do not report any error messages.
The start MongoDB prompt error is as follows
/usr/local/mongodb/mongodb3.3.12/bin/mongod:error while loading shared libraries:libssl.so.10:cannot open shared Object File:no such file or directory
Analyze the reason
The system does not know libssl.so.10 put in which directory, the global find a bit libssl.so.10 file was not found.
Locate the SSL101 installation information at the following address
https://centos.pkgs.org/5/atomic-x86_64/openssl101e-1.0.1e-9.el5.art.i386.rpm.html
Execute command: # Yum install openssl101e
The second run of MongoDB prompts the following information
/usr/local/mongodb/mongodb3.3.12/bin/mongod:/lib64/libc.so.6:version ' glibc_2.7 ' not found (required by/usr/local/ Mongodb/mongodb3.3.12/bin/mongod)
/usr/local/mongodb/mongodb3.3.12/bin/mongod:/lib64/libc.so.6:version ' glibc_2.6 ' not found (required by/usr/local/mongodb/mongodb3.3.12/bin/mongod)
/usr/local/mongodb/mongodb3.3.12 /bin/mongod:/lib64/libc.so.6:version ' glibc_2.8 ' not found (required by/usr/local/mongodb/mongodb3.3.12/bin/mongod)
/usr/local/mongodb/mongodb3.3.12/bin/mongod:/lib64/libc.so.6:version ' glibc_2.9 ' not found (required by/usr/ Local/mongodb/mongodb3.3.12/bin/mongod)
/usr/local/mongodb/mongodb3.3.12/bin/mongod:/lib64/libc.so.6: Version ' glibc_2.10 ' not found (required by/usr/local/mongodb/mongodb3.3.12/bin/mongod)
Analyze the reason
There is a/lib64/libc.so.6:version ' glibc_2.7 ' not found problem, GLIBC version is too low.
Let's look at the current system glibc:
Strings/lib64/libc.so.6 |grep GLIBC
glibc_2.2.5
glibc_2.2.6
glibc_2.3
glibc_2.3.2
glibc_ 2.3.3
glibc_2.3.4
glibc_2.4
glibc_2.5
Not found support for more than 2.6, need to reinstall GLIBC
Upgrade Version: Glibc-2.7.tar.gz
[root@dev201 ~]# cd/usr/src/
[root@dev201 src]# tar-zxf glibc-2.7.tar.gz
[root@dev201 src]# cd
glibc-2.7 [root@dev201 glibc-2.7]# mkdir-v. /glibc-build
mkdir:created directory '. /glibc-build '
[root@dev201 glibc-2.7]# CD. /glibc-build/
[root@dev201 glibc-build]#/usr/src/glibc-2.7/configure--prefix=/usr/
[root@dev201 glibc-build]# make
[root@dev201 glibc-build]# make install
View GLIBC situation at a time
Strings/lib64/libc.so.6 |grep GLIBC
glibc_2.2.5
glibc_2.2.6
glibc_2.3
glibc_2.3.2
GLIBC _2.3.3
glibc_2.3.4
glibc_2.4
glibc_2.5
glibc_2.6
glibc_2.7
The third run MongoDB prompts the following information
/usr/local/mongodb/mongodb3.3.12/bin/mongod:/lib64/libc.so.6:version ' glibc_2.8 ' not found (required by/usr/local/ Mongodb/mongodb3.3.12/bin/mongod)
/usr/local/mongodb/mongodb3.3.12/bin/mongod:/lib64/libc.so.6:version ' glibc_2.9 ' not found (required by/usr/local/mongodb/mongodb3.3.12/bin/mongod)
/usr/local/mongodb/mongodb3.3.12 /bin/mongod:/lib64/libc.so.6:version ' glibc_2.10 ' not found (required By/usr/local/mongodb/mongodb3.3.12/bin/mongod )
It seems that the installed version is still not high enough,
The website says to upgrade the GLIBC to 2.10 directly on 5.7, the system will crash, so it gives up the upgrade process.
Try to change the MongoDB lower version to try, with the mongodb3.1.4 boot as follows:
The fourth time to run the MongoDB prompt information as follows
/usr/local/mongodb/mongodb3.1.4/bin/mongod: /usr//lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/local/mongodb/mongodb3.1.4/bin/mongod)
/usr/local/mongodb/mongodb3.1.4/bin/mongod: /usr//lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/local/mongodb/mongodb3.1.4/bin/mongod)
/usr/local/mongodb/mongodb3.1.4/bin/mongod: /usr//lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by /usr/local/mongodb/mongodb3.1.4/bin/mongod)
/usr/local/mongodb/mongodb3.1.4/bin/mongod: /usr//lib64/libstdc++.so.6: version `CXXABI_1.3.3' not found (required by /usr/local/mongodb/mongodb3.1.4/bin/mongod)
/usr/local/mongodb/mongodb3.1.4/bin/mongod: /usr//lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/local/mongodb/mongodb3.1.4/bin/mongod)
/usr/local/mongodb/mongodb3.1.4/bin/mongod: /usr//lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/local/mongodb/mongodb3.1.4/bin/mongod)
Analyze the reason
gcc compiler version is too low
[Root@jstukw4cgk9nve mongodb3.1.4]# strings/usr/lib/libstdc++.so.6 | grep glibcxx
glibcxx_3.4
glibcxx_3.4.1
glibcxx_3.4.2
glibcxx_3.4.3
glibcxx_3.4.4 glibcxx_3.4.5
glibcxx_3.4.6
glibcxx_3.4.7
glibcxx_3.4.8
glibcxx_force_new
Temporarily discard the installation configuration MongoDB on this server, the compiler version is not high enough, the main concern after the upgrade of the system before the program and the environment have impact.
Solutions
http://ftp.gnu.org/gnu/glibc/
Download the relevant and install glibc_2.8, glibc_2.9, glibc_2.10.1 to install the configuration, currently can start the MongoDB normally.
Installation method see this page glibc-2.7.tar.gz installation scheme can be.
The main reason is that the system version is too late, causing the version of the C Run-time library to be too late.