說明你的centos系統中的yum源不包含MongoDB的相關資源,所以要在使用yum命令安裝MongoDB前需要增加yum源,也就是在 /etc/yum.repos.d/目錄中增加 *.repo yum源配置文件,以下分別是針對centos 64位和32位不同的系統的MongoDB yum 源配置內容:
vi /etc/yum.repos.d/10gen.repo
[10gen]
name=10gen Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0
vi /etc/yum.repos.d/10gen.repo
[10gen]
name=10gen Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686
gpgcheck=0
[root@vm ~]# yum info mongo-10gen-server
****(省略多行不重要的信息)*********
Available Packages
Name : mongo-10gen-server
Arch : x86_64
Version : 1.8.2
Release : mongodb_1
Size : 4.7 M
Repo : 10gen
Summary : mongo server, sharding server, and support scripts
URL : http://www.mongodb.org
License : AGPL 3.0
Description: Mongo (from “huMONGOus”) is a schema-free document-oriented
: database.
:
: This package provides the mongo server software, mongo sharding
: server softwware, default configuration files, and init.d scripts.
[root@vm ~]#
[root@vm ~]# yum info mongo-10gen
Loaded plugins: fastestmirror
**(省略多行不重要的信息)**
Installed Packages
Name : mongo-10gen
Arch : x86_64
Version : 1.8.2
Release : mongodb_1
Size : 55 M
Repo : 10gen
Summary : mongo client shell and tools
URL : http://www.mongodb.org
License : AGPL 3.0
Description: Mongo (from “huMONGOus”) is a schema-free document-oriented
: database. It features dynamic profileable queries, full indexing,
: replication and fail-over support, efficient storage of large
: binary data objects, and auto-sharding.
:
: This package provides the mongo shell, import/export tools, and
: other client utilities.
[root@vm ~]#
[root@vm ~]# yum install mongo-10gen-server
[root@vm ~]# ls /usr/bin/mongo(tab鍵)
mongo mongod mongodump mongoexport mongofiles mongoimport mongorestore mongos mongostat
―――――――――――――――
主站蜘蛛池模板:
宁南县|
南召县|
萍乡市|
罗山县|
平顺县|
巨野县|
延津县|
弋阳县|
海丰县|
灌南县|
手机|
东乡族自治县|
正蓝旗|
绥德县|
砀山县|
哈巴河县|
库尔勒市|
旺苍县|
松桃|
辽宁省|
巴中市|
白沙|
中卫市|
吐鲁番市|
邯郸市|
通州市|
泰宁县|
舒兰市|
静乐县|
同德县|
策勒县|
宁远县|
萝北县|
清河县|
虞城县|
田阳县|
托克逊县|
遵义市|
巍山|
文山县|
道孚县|