[Solved] MongoDB Startup Error: Unrecognized option: storage try ‘mongod –help’ for more information

Problem Description:

Today, when mongodb is started by using the configuration file method, it always fails to start, and an error is displayed: unrecognized option: storage try ‘mongod — help’ for more information

This is due to the configuration error of the configuration file. Two spaces need to be added at the beginning of the second and third lines of the file content, as shown in the following figure:

Similar Posts: