How to Shutdown MongpDB from shell
you can only be able to shutdown server if you are in admin database.
use admin
command is db.shutdownServer()
Soft kill is also fine with mongo
kill pid
Note: kill is clean shutdown.
note: do not use kill -9, this will abruptly shutdown the mongo
use admin
command is db.shutdownServer()
Soft kill is also fine with mongo
kill pid
Note: kill is clean shutdown.
note: do not use kill -9, this will abruptly shutdown the mongo
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home