Stuck on Chapter 1: The Mongod, Lab - Launching Mongod. There are many variables involved, so being new to setting up a VM, node, etc… this has been more daunting than expected. But I am determined to learn.
Anyhow, I am running through this exercise and reading about configuration settings, bind ip, authentication settings and such in the MongoDB Manual. I think I successfully created the username and password in the lab exercise, but I was unable to get the validation script to run. I did kill the process using PID, and have reset and retried various combinations in mongod and mongo.
This is my latest, in just trying to restart at the top line:
vagrant@m103:~ mongo --auth --port 27000 --host localhost,192.168.103.0 Error parsing command line: unrecognised option '--auth' try 'mongo --help' for more information vagrant@m103:~ mongo --port 27000 --host localhost,192.168.103.0 --auth
Error parsing command line: unrecognised option ‘–auth’
try ‘mongo --help’ for more information
This is just in response to this:
Applying what you’ve learned so far about the mongod process, launch a mongod instance, from the command line, with the following requirements:
- run on port 27000
- data files are stored in /data/db/
- listens to connections from the IP address 192.168.103.100 and localhost
- authentication is enabled
Any help is greatly appreciated. Also, I realize that this is late, but can I still continue the class and try to catch up or do I have to retake it?