mongodbを停止する方法

方法1
>use admin;
switched to db admin
>db.shutdownServer();
Tue Nov 18 11:03:24.164 DBClientCursor::init call() failed
server should be down…
Tue Nov 18 11:03:24.169 trying reconnect to 127.0.0.1:27017
Tue Nov 18 11:03:24.171 reconnect 127.0.0.1:27017 failed couldn’t connect to server 127.0.0.1:27017
> exit
bye

方法2
kill -15,killall mongod

DataBase

Posted by arkgame