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>
I had a similar problem when I switched to a new version mongod without upgrading the data (from version 3.2, for example, to version 3.6).
In this case, mongod outputs ** IMPORTANT: UPGRADE PROBLEM: The data files need to be fully upgraded to version 3.4 before attempting an upgrade to 3.6; see http://dochub.mongodb.org/core/3.6-upgrade-fcv for more details. (mongod was started with the --verbose key).
The link does lead to detailed instructions on how to upgrade the data.
It is strange that error 62 is not described in the documentation.