您的位置:首页 > 博客中心 > 数据库 >

Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux

时间:2022-03-10 17:14

Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux?

mongodb-org

mongodb-org-server

mongodb-org-mongos

mongodb-org-shell

mongodb-org-tools

WARNING

With the introduction of systemd in Fedora 15, the control scripts included in the packages available in the MongoDB downloads repository are not compatible with Fedora systems. A correction is forthcoming, see SERVER-7285 for more information, and in the mean time use your own control scripts

1

[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1

[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686/
gpgcheck=0
enabled=1

2

sudo yum install mongodb-org

sudo yum install mongodb-org-2.6.1 mongodb-org-server-2.6.1 mongodb-org-shell-2.6.1 mongodb-org-mongos-2.6.1 mongodb-org-tools-2.6.1

exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools

IMPORTANT

  • 1

    sudo service mongod start
    

  • 2

    sudo chkconfig mongod on
    

    3

    sudo service mongod stop
    

    4

    sudo service mongod restart
    

    5

    Begin using MongoDB.

    To begin using MongoDB, see Getting Started with MongoDB.

    Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux,布布扣,bubuko.com

    相关推荐

    电脑软件

    热门排行

    今日推荐

    热门手游