2
如果我取消並在默認端口上重新啓動我的mongodb,則重新連接好,並且沒有任何問題。
當我將27018
端口上這樣做,似乎在我的bash窗口重新連接和我在重啓的結束得到這樣的說法:當我停止並重新啓動我的mongod服務時,爲什麼會出現應用程序錯誤
initandlisten] waiting for connections on port 27018
websvr] web admin interface listening on port 28018
但是當我運行我的應用程序我得到這樣
錯誤Operation failed with the following exception: connection closed
和
Operation failed with the following exception: Broken pipe - send(2)
:10:in `synchronize'
你是說「當應用程序配置爲在默認端口27017使用monogdb時,它在mongodb重新啓動時重新連接,但沒有配置爲端口27018時」?我不相信你;) – oma 2011-05-14 21:05:34