2016-01-26 81 views
0

我在這裏有一個困境。我被要求(嘗試)將我的CentOS 7服務器上的MongoDB從2.6.X升級到3.0+。我試着按照Mongo的基本指南(直接替換二進制文件),這在當地非常有效。在服務器上,我的MongoDB服務完全崩潰了,我不知道。並就蒙戈殼牌的頂部仍處於2.6莫名其妙XDMongoDB安裝地獄

systemctl狀態蒙戈*揭示了這場災難:

[email protected]:~# 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. 

任何援助都將不勝感激!

再次感謝,一如既往。

+0

'暫存mongos [2712]:/ usr/bin/mongos:加載共享庫時出錯:libssl.so.1.0.0:無法打開共享目標文件:沒有這樣的目錄# –

+0

是...我不知道如何解決它。任何想法? – Nodal

回答

0

這最終通過yum remove mongo*解決,然後以任何方式手動刪除任何涉及到Mongo的任何內容(使用locate mongo*找到)。然後添加一個最新的Mongo repo,並通過yum安裝v3.2.1(與MongoDB更常見的建議直接替換二進制文件相反)。