您好,登錄后才能下訂單哦!
mongod: error while loading shared libraries: libstdc++.so.6
環境說明:
OS:Oracle Linux Server release 6.3
DB:MongoDB 1.8.2
問題:
mongod安裝后啟動失敗。
[mongo@cjcos01 ~]$ mongod -config /usr/local/mongodb/conf/mongodb.conf mongod: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
檢查缺少哪些包:
[root@cjcos01 os]# yum whatprovides libstdc++.so.6
Loaded plugins: refresh-packagekit, security
libstdc++-4.4.6-4.el6.i686 : GNU Standard C++ Library
Repo : Oralin6u3
Matched from:
Other : libstdc++.so.6
安裝libstdc++-4.4.6-4.el6.i686:
[root@cjcos01 os]# yum install libstdc++-4.4.6-4.el6.i686
再次啟動mongod,可以正常啟動:
[root@cjcos01 os]# su - mongo
[mongo@cjcos01 ~]$ mongod -config /usr/local/mongodb/conf/mongodb.conf
[mongo@cjcos01 ~]$ forked process: 15819
all output going to: /usr/local/mongodb/log/mongodb.log
登錄mongo:
[root@cjcos01 os]# su - mongo
[mongo@cjcos01 ~]$ mongo
MongoDB shell version: 1.8.2 connecting to: test > show dbs; admin(empty) cjc0.0625GB local(empty)
歡迎關注我的微信公眾號"IT小Chen",共同學習,共同成長!!!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。