我在本地機器上過夜運行Rails rake任務,以便爲我的Mongo收集種子。它可能產生的約45,000條記錄之前,我收到以下異常:Mongo:丟失連接和集合
Operation failed with the following exception: connection closed
Failed to connect to a master node at localhost:27017
我在Mac OS X,所以我試圖mongo
並取得了以下:
Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84
exception: connect failed
於是我就mongod
思考這隻會啓動這個過程。它現在似乎已經索引了新的集合,因爲它們都是空的。我是否覆蓋了它們,或者它們可能還存在於某個地方?
我跑ls /data/db
,我看到myapp_development.0
和myapp_development.ns
。這是否告訴我什麼?
我重新啓動了我的系統,現在一切都好? –