MongoDB - shutting down with code:62

后端 未结 10 879
既然无缘
既然无缘 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条回答
  •  生来不讨喜
    2020-12-05 18:03

    My errror started with an error 62.

    2018-06-10T13:49:27.750-0400 I CONTROL [initandlisten] shutting down with code:62

    I deleted /db and reinstalled /db in /data/db.

    $ sudo -r rm db

    Once I did this and tried to run >mongod I got a 100 error. I had to change the rights

    2018-06-10T13:52:20.042-0400 I CONTROL [initandlisten] shutting down with code:100

    To fix this I did:

    $ sudo chown -R `id -un` /data/db

    Once this was run I was able to run mongo db.

    $mongod

    I hope this helps.

提交回复
热议问题