MongoDB 2.6.4 主从同步(2)

2014-09-05T15:15:48.791+0800 [initandlisten] connection accepted from 127.0.0.1:35622 #1 (1 connection now open)
2014-09-05T15:16:34.336+0800 [replslave] repl:  checkpoint applied 15 operations
2014-09-05T15:16:34.336+0800 [replslave] repl:  syncedTo: Sep  5 15:16:24 54096348:1
2014-09-05T15:18:48.556+0800 [clientcursormon] mem (MB) res:36 virt:585
2014-09-05T15:18:48.556+0800 [clientcursormon]  mapped (incl journal view):320
2014-09-05T15:18:48.556+0800 [clientcursormon]  connections:1
2014-09-05T15:18:54.357+0800 [replslave] repl:  checkpoint applied 15 operations
2014-09-05T15:18:54.358+0800 [replslave] repl:  syncedTo: Sep  5 15:18:44 540963d4:1

关闭MongoDB :

方法一:

[linuxidc@linuxidc04 mongodb-linux-x86_64-2.6.4]$ mongod  --shutdown  --dbpath /home/linuxidc/mongodb-linux-x86_64-2.6.4/data
killing process with pid: 22745

方法二:

[linuxidc@linuxidc04 mongodb-linux-x86_64-2.6.4]$ mongo localhost:10000       
MongoDB shell version: 2.6.4
connecting to: localhost:10001/test
> use admin;
switched to db admin
> db.shutdownServer();
2014-09-05T15:23:59.910+0800 DBClientCursor::init call() failed
server should be down...
2014-09-05T15:23:59.912+0800 trying reconnect to localhost:10000 (127.0.0.1) failed
2014-09-05T15:23:59.915+0800 warning: Failed to connect to 127.0.0.1:10000, reason: errno:111 Connection refused
2014-09-05T15:23:59.915+0800 reconnect localhost:10000 (127.0.0.1) failed failed couldn't connect to server localhost:10000 (127.0.0.1), connection attempt failed
> exit;
[linuxidc@linuxidc04 ~]$

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/edef9cba1b77c44ba63ad2d1156274aa.html