June 2014
Intermediate to advanced
696 pages
38h 52m
English
Each platform has different methods of stopping the mongod executable once it has started. However, one of the best methods is to do it from the shell client because that cleanly shuts down the current operations and forces mongod to exit.
To stop the MongoDB database you should open the shell client by executing the following command in a console window to open the MongoDB shell client:
mongo
Then from the MongoDB shell client, use the following commands to switch to the admin database and then shut down the database engine:
use admindb.shutdownServer()
Read now
Unlock full access