0
0

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.

homebrewが嫌いな私のような人向けのMacへのMongoDBの入れ方

Last updated at Posted at 2017-05-05

以下を参照
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/

curl -O https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.4.4.tgz

ダウンロード

tar -zxvf mongodb-osx-x86_64-3.4.4.tgz

解凍

mkdir -p mongodb
cp -R -n mongodb-osx-x86_64-3.4.4/ mongodb

フォルダー作って移す

export PATH="$PATH:./mongodb-osx-x86_64-3.4.4/bin"

でパスを足す

*注意:この記事はあくまで2017/5/5の最新バージョン(のはず)です

あと
data/dbがないよって言われたら

sudo mkdir -p /data/db

を入れたらいけました。

ちなみに

sudo mongod

でmongoDB起動

mongo

でdbを触るっぽくって

use admin
db.shutdownServer()

をmongo上で実行したらdbを終了できます。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?