So I was going through the final m103 exam and I got the following answer wrong:
- mongod --dbpath /data/db --fork
Question was: Which of the following are valid command line instructions to start a mongod? You may assume that all specified files already exist.
Now, I might have missed something on this, but I don’t understand why the above is not going to work, while the following one is correct:
- mongod --logpath /var/log/mongo/mongod.log --dbpath /data/db --fork
Anyone who can tell me why (1) is incorrect, while (2) is correct?