I’m trying to follow along in the video at https://university.mongodb.com/mercury/M103/2019_August/chapter/Chapter_1_The_Mongod/lesson/5a96e969dce509e56145f6a3/lecture. During the course of the video, we’re told to enter the following code at the prompt:
mongod --port 30000 --dbpath first_mongod --logpath first_/mongod. log --fork
But this consistently returns
about to fork child process, waiting until server is ready for connections.
forked process: 6611
ERROR: child process failed, exited with error number 1
To see additional information in this output, start without the “–fork” option.
What “fork option”? Does this mean the “log --fork” parameter? Okay, so I run the command again without “log --fork”:
mongod --port 30000 --dbpath first_mongod --logpath first_/mongod.
And this is what I get:
2019-08-21T04:03:38.904+0000 F CONTROL [main] Failed global initialization: FileNotOpen: Failed to open “/home/vagrant/first_/mongod.”
I’m lost. None of this is addressed in the video. Can someone clue me in? Thanks.