MongoDB ERROR: child process failed, exited with 100

created at 06-06-2022 views: 23

problem

startup error

[root@localhost mongodb]# mongod --port=27017 --logpath=./log --dbpath=./db --fork  
about to fork child process, waiting until server is ready for connections.
forked process: 2454
ERROR: child process failed, exited with 100
To see additional information in this output, start without the "--fork" option.

reason and solution

This error code is 100, the reason is that the folder of dbpath has not been created, just create the folder in the position of dbpath

[root@localhost mongodb]# mkdir db log
[root@localhost mongodb]# mongod --port=27017 --logpath=./log/mongodb.log --dbpath=./db --fork
about to fork child process, waiting until server is ready for connections.
forked process: 3429
child process started successfully, parent exiting
created at:06-06-2022
edited at: 06-06-2022: