Under the mac start MongoDB database system

Start the database

If the system has set the global variable is used to run the terminal

sudo mongod

 

If you do not set the global variable terminal execute the code to run

Switch to the directory database

cd /usr/local/mongodb/bin

Start command execution

sudo ./mongod

 

Guess you like

Origin www.cnblogs.com/liea/p/11222301.html