Lab: Logging to different Facility

I tried doing using this but getting this type of error
bash-4.4# mongod --port 27000 --fork --logpath /var/mongodb/lo>
about to fork child process, waiting until server is ready for connections.
forked process: 331
ERROR: child process failed, exited with error number 100
To see additional information in this output, start without the “–fork” option.
bash-4.4#

  • What happens if you remove the --fork option?
  • What does the log file read?

Also, the following flags are preferable: --dbpath <path>, --logappend

Make sure --dbpath exists, and is not overwriting a previous db.

Hi @Tarun_Bhati,

As per the instructions mentioned in the lab, you are supposed to use a configuration file for starting the mongod process.

~ Shubham