mac开启 mongo :brew services start mongodb-community@4.4
mac关闭 mongo :brew services stop mongodb-community@4.4
- the configuration file (
/usr/local/etc/mongod.conf
) - the
log directory path
(/usr/local/var/log/mongodb
) - the
data directory path
(/usr/local/var/mongodb
)