MongoDB - shutting down with code:62

后端 未结 10 882
既然无缘
既然无缘 2020-12-05 17:58

I followed the MongoDB Docs to run my MongoDB in macOS,

When I start MongoDB using the terminal get this error:

Shutting down with code: 62

10条回答
  •  旧时难觅i
    2020-12-05 18:04

    Although the accepted answer works, it removes all your data.

    What worked for me without need to lose my DB is using mongodump to create a backup of the data. Then removing it by sudo rm -r /path/to/dbdata and finally restoring it with mongorestore.

    That made systemctl start mongodb to not fail and the data was in perfect state.

提交回复
热议问题