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>
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.