Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

11
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Last updated at Posted at 2015-05-04

/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
11
11
0

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
  3. You can use dark theme
What you can do with signing up

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
11
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?