Skip to content

Instantly share code, notes, and snippets.

@QETHAN
Created May 18, 2013 07:55
Show Gist options
  • Save QETHAN/5603630 to your computer and use it in GitHub Desktop.
Save QETHAN/5603630 to your computer and use it in GitHub Desktop.
将mongodb的bin目录加入PATH环境变量中,例如:
export PATH=~/Develope-Tools/mongodb/bin:$PATH
,然后在主目录的.profile文件中增加shell命令的alias,如下:
alias mongostart="mongod -f ~/.mongodb.conf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment