Skip to content

Instantly share code, notes, and snippets.

@hrdmtr
Last active October 12, 2015 05:37
Show Gist options
  • Save hrdmtr/3978490 to your computer and use it in GitHub Desktop.
Save hrdmtr/3978490 to your computer and use it in GitHub Desktop.
MongoDBメモ

MongoDBコマンドメモ

シンプルなmongod-mongo構成

起動

%MONGO_HOME%の直下にdataディレクトリがある前提で次のコマンドでmongod起動

$ cd $MONGO_HOME
$ bin/mongod --dbpath ./data

接続

起動したmongodに接続

$ bin/mongo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment