search
LoginSignup
11

More than 5 years have passed since last update.

posted at

updated at

CentOS 7 で MongoDB 3.0 をインストール

/etc/yum.repos.d/mongodb-org-3.0.repoを以下の内容で作成

[mongodb-org-3.0]
name=MongoDB Repository
baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.0/x86_64/
gpgcheck=0
enabled=1

インストール

yum install mongodb-org

起動

systemctl start mongod

停止

systemctl stop mongod

自動起動

mongodはCentOS 7のネイティブデーモンではないため、従来通りchkconfigを使う

chkconfig mongod on

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
11