首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MongoDB安装地狱

MongoDB安装地狱
EN

Stack Overflow用户
提问于 2016-01-26 11:59:42
回答 1查看 285关注 0票数 0

我现在左右为难。我被要求(尝试)将我的CentOS 7服务器上的MongoDB从2.6.X升级到3.0+。我试着遵循Mongo的基本指南(直接替换二进制文件),这很好用……在本地。在服务器上,我的MongoDB服务完全崩溃了,我不知道。最重要的是,Mongo Shell的XD版本仍然是2.6

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

代码语言:javascript
复制
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.

任何帮助都将不胜感激!

再次感谢,一如既往。

EN

回答 1

Stack Overflow用户

发布于 2016-01-26 16:06:39

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35006862

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档