欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

解決啟動(dòng)MongoDB錯(cuò)誤:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:

 更新時(shí)間:2018年10月10日 11:04:29   作者:52PHP  
本文提供了解啟動(dòng)MongoDB時(shí)提示:error while loading shared libraries: libstdc++.so.6: cannot open shared object file: 錯(cuò)誤的解決方案

啟動(dòng)MongoDB時(shí),提示:

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

[root@SnsWeb ~]# /usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/data --logpath /usr/local/mongodb/logs/mongodb.log --fork
/usr/local/mongodb/bin/mongod: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[root@SnsWeb ~]#

報(bào)錯(cuò)原因:缺少libstdc++.so.6運(yùn)行庫

解決方案:安裝libstdc++.so.6運(yùn)行庫

1、執(zhí)行命令

yum whatprovides libstdc++.so.6

然后會(huì)提示哪個(gè)安裝包有這個(gè)庫文件,如下:

[root@SnsWeb ~]# yum whatprovides libstdc++.so.6
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
libstdc++-4.4.7-11.el6.i686 : GNU Standard C++ Library
Repo    : base
Matched from:
Other    : libstdc++.so.6

2、然后執(zhí)行

yum -y install libstdc++-4.4.7-11.el6.i686

非常簡(jiǎn)單,工作中系統(tǒng)或軟件會(huì)出現(xiàn)各種問題,不要急著去問百度,試著去閱讀一下錯(cuò)誤提示,自己根據(jù)錯(cuò)誤提示來解決相關(guān)問題,如果是英文的還能提高你的英文閱讀水平

相關(guān)文章

最新評(píng)論