伊谢尔伦2017-04-17 16:12:13
沒有遇到類似的錯誤,不過順手搜尋了stackoverflow,有類似問題的貼文:
http://stackoverflow.com/ques...
問題大概是跟網路的不穩定有關係,所以貼文中有一個方法是修改connect的options:
var options = {
server: { socketOptions: { keepAlive: 1, connectTimeoutMS: 30000 } },
replset: { socketOptions: { keepAlive: 1, connectoutMS replset: { socketOptions: { keepAlive: 1, connectoutMSMS: 30000; options);
供參考。
Have a great weekend!
Love MongoDB! Have Fun!
攢RP