1
1

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.

Mac OS X EI Capitanにmongodbを入れてみる

Posted at

Homebrewのインストール

参考:http://qiita.com/is0me/items/475fdbc4d770534f9ef1

# Download & Install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# PATHを通す(.bash_profileに記述)
$ export PATH=/usr/local:$PATH

/data/db を作成

$ mkdir /data
$ mkdir /data/db

mongod

$ mongod
# こんなメッセージが出たら成功
2016-02-13T10:34:55.559+0900 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49232 #1 (1 connection now open)

mongo

# Terminalでmongodとは別のタブを開いて実行
$ mongo
>

以上

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?