Quantcast
Channel: pg-info » MongoDB
Viewing all articles
Browse latest Browse all 2

CentOS7にMongoDB3をインストール

$
0
0

公式サイトに「Red Hat Enterprise」のインストール方法があるのでその内容で行っています。
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat/

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

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

MongoDB3.0のインストール

yum install -y mongodb-org

MongoDBの起動

systemctl start mongod

停止コマンド

systemctl stop mongod

MongoDBの自動起動設定

chkconfig mongod on


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images