2
當我嘗試關閉我的VM Ubuntu中的mongodb時出現以下錯誤。mongo db.shutdownServer錯誤()
我正在運行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。
請指教。
直到現在,我還沒有看到過這個消息,當時我有兩次安裝brew和一個默認的安裝。即使在刪除裝有brew的裝置後,我仍然收到消息。 – andyPaul