LoginSignup
0
0

More than 5 years have passed since last update.

MongoDBのインストール

Posted at

やってみたのでメモ

前提

  • CentOS7

手順

  1. リポジトリ情報を登録する

    # vi /etc/yum.repos.d/mongodb-org-4.0.repo
    
    mongodb-org-4.0.repo
    [mongodb-org-4.0]
    name=MongoDB Repository
    baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
    gpgcheck=1
    enabled=1
    gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
    
  2. yumでインストールする

    # yum install -y mongodb-org
    
  3. 起動する

    # systemctl start mongod
    

参考

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