MongoDB安装地狱

时间:2016-01-26 03:59:42

标签: linux mongodb service centos systemd

我在这里陷入两难境地。我被要求(尝试)将我的CentOS 7服务器上的MongoDB从2.6.X升级到3.0+。我尝试按照Mongo的基本指南(直接替换二进制文件),这在当地非常有效。在服务器上我的MongoDB服务完全翻了,我不知道。最重要的是,Mongo Shell仍然处于2.6以下的XD

systemctl status mongo *揭示了这场灾难:

root@staging:~# systemctl status mongo*
● mongod.service - SYSV: Mongo is a scalable, document-oriented database.
   Loaded: loaded (/etc/rc.d/init.d/mongod)
   Active: failed (Result: exit-code) since 一 2016-01-25 16:57:13 CST; 18h ago
     Docs: man:systemd-sysv-generator(8)

1月 25 16:57:13 staging systemd[1]: Starting SYSV: Mongo is a scalable, document-oriented database....
1月 25 16:57:13 staging runuser[5310]: pam_unix(runuser:session): session opened for user mongod by (uid=0)
1月 25 16:57:13 staging runuser[5310]: pam_unix(runuser:session): session closed for user mongod
1月 25 16:57:13 staging mongod[5301]: Starting mongod: [FAILED]
1月 25 16:57:13 staging systemd[1]: mongod.service: control process exited, code=exited status=1
1月 25 16:57:13 staging systemd[1]: Failed to start SYSV: Mongo is a scalable, document-oriented database..
1月 25 16:57:13 staging systemd[1]: Unit mongod.service entered failed state.
1月 25 16:57:13 staging systemd[1]: mongod.service failed.
1月 26 11:03:04 staging systemd[1]: Stopped SYSV: Mongo is a scalable, document-oriented database..
1月 26 11:04:52 staging systemd[1]: Stopped SYSV: Mongo is a scalable, document-oriented database..

● mongos.service
   Loaded: not-found (Reason: No such file or directory)
   Active: failed (Result: exit-code) since 一 2016-01-25 15:46:20 CST; 20h ago

1月 25 15:46:20 staging systemd[1]: Starting High-performance, schema-free document-oriented database...
1月 25 15:46:20 staging mongos[2712]: /usr/bin/mongos: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such f... directory
1月 25 15:46:20 staging systemd[1]: mongos.service: control process exited, code=exited status=127
1月 25 15:46:20 staging systemd[1]: Failed to start High-performance, schema-free document-oriented database.
1月 25 15:46:20 staging systemd[1]: Unit mongos.service entered failed state.
1月 25 15:46:20 staging systemd[1]: mongos.service failed.
1月 25 16:04:23 staging systemd[1]: Stopped High-performance, schema-free document-oriented database.
1月 26 11:18:04 staging systemd[1]: Stopped mongos.service.
Hint: Some lines were ellipsized, use -l to show in full.

非常感谢任何协助!

再次感谢,一如既往。

1 个答案:

答案 0 :(得分:0)

这最终由yum remove mongo*解决,然后以任何方式手动删除引用Mongo的ANYTHING(使用locate mongo*找到)。然后添加一个最新的Mongo仓库并通过yum安装v3.2.1(与MongoDB中更常见的建议相反,只需直接替换二进制文件)。

相关问题