I created the mongod.conf file inside /data/ and I then run “mongod -f /data/mongod.conf” which gives the response “2019-08-26T02:01:01.755+0000 I CONTROL [main] log file “/data/logs/mongod.log” exists; moved to “/data/logs/mongod.log.2019-08-26T02-01-01”.”
I read on another post about this that the message about log file already existing can be ignored, but when I run the test “validate_lab_configuration_file” in another terminal window after connecting with “vagrant ssh” I still get “You need to start mongod with a configuration file.”
My /data/mongod.conf file looks like this (missing indentation due to formatting of this post, in the actual file it has indentation):
storage:
dbPath: “/data/db”
systemLog:
path: “/data/logs/mongod.log”
destination: “file”
net:
bindIp: “127.0.0.1,192.168.103.100”
port: 27000
security:
authorization: enabled