当我尝试在我的VM Ubuntu中关闭mongodb时出现以下错误.
我正在运行12.10 Ubuntu无头服务器.
目前的Mongodb Shell版本是2.0.6
use admin switched to db admin > db.shutdownServer() Tue Dec 10 14:17:03 DBClientCursor::init call() failed Tue Dec 10 14:17:03 query failed : admin.$cmd { shutdown: 1.0 } to: 127.0.0.1 server should be down... Tue Dec 10 14:17:03 trying reconnect to 127.0.0.1 Tue Dec 10 14:17:03 reconnect 127.0.0.1 ok Tue Dec 10 14:17:03 Socket recv() errno:104 Connection reset by peer 127.0.0.1:27017 Tue Dec 10 14:17:03 SocketException: remote: 127.0.0.1:27017 error: 9001 socket exception [1] server [127.0.0.1:27017] Tue Dec 10 14:17:03 DBClientCursor::init call() failed Tue Dec 10 14:17:03 query failed : admin.$cmd { getlasterror: 1.0, w: 1.0 } to: 127.0.0.1 Tue Dec 10 14:17:03 Error: error doing query: failed shell/collection.js:151
我该怎么办?
我试图关闭它的原因是因为我想更新到mongo 2.2.
请指教.