1. tomoktan_cansell

    Posted

    tomoktan_cansell
Changes in title
+Mac OS X EI Capitanにmongodbを入れてみる
Changes in tags
Changes in body
Source | HTML | Preview
@@ -0,0 +1,35 @@
+# 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
+>
+```
+
+以上