[root@localhost /]# yum install mongodb
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.opencas.cn
* epel: mirrors.opencas.cn
* extras: mirrors.yun-idc.com
* updates: mirrors.yun-idc.com
Resolving Dependencies
--> Running transaction check
---> Package mongodb.x86_64 0:2.6.11-1.el7 will be installed
--> Processing Dependency: libyaml-cpp.so.0.5()(64bit) for package: mongodb-2.6.11-1.el7.x86_64
--> Processing Dependency: libtcmalloc.so.4()(64bit) for package: mongodb-2.6.11-1.el7.x86_64
--> Processing Dependency: libstemmer.so.0()(64bit) for package: mongodb-2.6.11-1.el7.x86_64
--> Processing Dependency: libboost_program_options-mt.so.1.53.0()(64bit) for package: mongodb-2.6.11-1.el7.x86_64
--> Processing Dependency: libboost_filesystem-mt.so.1.53.0()(64bit) for package: mongodb-2.6.11-1.el7.x86_64
--> Running transaction check
---> Package boost-filesystem.x86_64 0:1.53.0-23.el7 will be installed
---> Package boost-program-options.x86_64 0:1.53.0-23.el7 will be installed
---> Package gperftools-libs.x86_64 0:2.4-5.el7 will be installed
--> Processing Dependency: libunwind.so.8()(64bit) for package: gperftools-libs-2.4-5.el7.x86_64
---> Package libstemmer.x86_64 0:0-2.585svn.el7 will be installed
---> Package yaml-cpp.x86_64 0:0.5.1-6.el7 will be installed
--> Finished Dependency Resolution
Error: Package: gperftools-libs-2.4-5.el7.x86_64 (epel)
Requires: libunwind.so.8()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
麻烦了,初次接触,不明白为什么按照视频操作无法安装。mongodb安装失败。