欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

CentOS6.5安装MongoDB2.6

程序员文章站 2022-06-10 09:24:33
...

CentOS 6.5安装MongoDB 2.6 作者:chszs,转载需注明。博客主页:http://blog.csdn.net/chszs 1、创建mongodb.repo文件 [mongodb] name=MongoDB Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ gpgcheck=0 enabled=1 2、执

CentOS 6.5安装MongoDB 2.6

  1. 作者:chszs,转载需注明。博客主页:http://blog.csdn.net/chszs
1、创建mongodb.repo文件
[mongodb] name=MongoDB Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ gpgcheck=0 enabled=1
2、执行安装命令
Loaded plugins: security base | 3.7 kB 00:00 base/primary_db | 4.4 MB 00:01 extras | 3.4 kB 00:00 extras/primary_db | 19 kB 00:00 mongodb | 951 B 00:00 mongodb/primary | 24 kB 00:16 mongodb 155/155 openlogic | 1.3 kB 00:00 openlogic/primary | 273 kB 00:00 openlogic 24/24 updates | 3.4 kB 00:00 updates/primary_db | 2.6 MB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package mongodb-org.x86_64 0:2.6.0-1 will be installed --> Processing Dependency: mongodb-org-tools = 2.6.0 for package: mongodb-org-2.6.0-1.x86_64 --> Processing Dependency: mongodb-org-shell = 2.6.0 for package: mongodb-org-2.6.0-1.x86_64 --> Processing Dependency: mongodb-org-server = 2.6.0 for package: mongodb-org-2.6.0-1.x86_64 --> Processing Dependency: mongodb-org-mongos = 2.6.0 for package: mongodb-org-2.6.0-1.x86_64 --> Running transaction check ---> Package mongodb-org-mongos.x86_64 0:2.6.0-1 will be installed ---> Package mongodb-org-server.x86_64 0:2.6.0-1 will be installed ---> Package mongodb-org-shell.x86_64 0:2.6.0-1 will be installed ---> Package mongodb-org-tools.x86_64 0:2.6.0-1 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================ Package Arch Version Repository Size ============================================================================================ Installing: mongodb-org x86_64 2.6.0-1 mongodb 4.6 k Installing for dependencies: mongodb-org-mongos x86_64 2.6.0-1 mongodb 6.8 M mongodb-org-server x86_64 2.6.0-1 mongodb 8.9 M mongodb-org-shell x86_64 2.6.0-1 mongodb 4.2 M mongodb-org-tools x86_64 2.6.0-1 mongodb 88 M Transaction Summary ============================================================================================ Install 5 Package(s) Total download size: 108 M Installed size: 274 M Is this ok [y/N]: y ……
3、配置SELinux防火墙
4、启动MongoDB
5、验证MongoDB
$ sudo service mongod restart