### mac上后台启动mongodb脚本 ``` bash #!/usr/bin/env bash nohup mongod --auth --dbpath data/db/ --logpath log/log.txt --rest > log/nohup.out 2>&1 & ```