Skip to content

Instantly share code, notes, and snippets.

@v5tech
Created February 28, 2014 20:43
Show Gist options
  • Save v5tech/9279500 to your computer and use it in GitHub Desktop.
Save v5tech/9279500 to your computer and use it in GitHub Desktop.

mac上后台启动mongodb脚本

#!/usr/bin/env bash
nohup mongod --auth --dbpath data/db/ --logpath log/log.txt --rest  > log/nohup.out 2>&1  &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment