I am very new at Mongo. I am running mongod
as described here in Mac OS X
. I am running two mongod
processes from the command line. If I need to stop the mongod
processes I just execute kill <pid of mongod>
. Is it the recommended way to stop mongod
?
It finally succeeded (Ubuntu 15.04) with
//1.find process by name:
$ pgrep mongo
1350
//2.kill mongod-process
$ kill 1350