osx - How to start a mongodb service on mac OS X? -


i have installed mongodb on mac process not running. how start mongodb service can start using commands?

try following steps in terminal:

which mongod 

this output path mongod, if not in $path command output empty. need find executable:

find / -name 'mongod' 

in output of command, see many lines, 1 of bin/mongod, e.g. /usr/local/mongodb/bin/mongod. in case take whole absolute path , following:

echo "path=/usr/local/mongodb/bin/:$path" >> ~/.bash_profile . ~/.bash_profile 

then try again:

mongod --dbpath /your/path 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -