1 Install

1.1 Mac

参考: mongodb

1
2
3
4
5
6
7
8
9
10
11
12
13
# 1 install
brew install mongodb

# 2 Set mongodb path
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc

# 3 Start
brew services start mongodb
# 手动启动
mongod

# 4 Mongo Client
mongo

2 Tools

2.1 Intro

Reference: tools

mongodb生态以及运行环境介绍

2.2 Shell

1
2
3
4
5
6
# 1 启动mongo终端
mongo

# 2 mongodb状态查询
mongostat
mongotop