Help us understand the problem. What is going on with this article?

[macOS]MongoDBのインストールからコンソールに入るまで

More than 1 year has passed since last update.

MongoDBのインストール方法

%brew install mongodb
で安定版4.0.4がインストールされる

起動方法

今すぐ起動して、ログイン時に自動で再起動する場合
%brew services start mongodb

Successfully started ‘mongodb’ (label: homebrew.mxcl.mongodb)
と出たら起動成功

%mongo

でmongodbのインターフェースに入る

バックグラウンドで起動しない起動方法

バックグラウンドで起動したくない場合は
%mongod --config /usr/local/etc/mongod.conf
を入力するとターミナルがサーバを起動した状態になるので、command+tで新しい
ターミナルのタブを開いて,
%mongo
と入力すれば、MongoDBのコンソールに入れる

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away