Lab 1 - Launching Mongod

  1. created a directory data/db
  2. Initiated mongod instance using
    mongod --port 27000 --bind_ip localhost,192.168.103.100 --dbpath data/db --logpath data/db/mongod.log --fork
  3. created user using

mongo admin --host localhost:27000 --eval '
db.createUser({
user: “m103-admin”,
pwd: “m103-pass”,
roles: [
{role: “root”, db: “admin”}
]
})

  1. cross-verified by connecting to admin Database and db.getUsers() command.
  2. user created successfully.
  3. validate_lab_launch_mongod – gives in the message log
    You need to specify db path /data/db.

I am stuck here!

Please double check your dbpath

/data/db and data/db are not same

ohh my bad!!

Thanks man for the quick reply…

Closing this thread as the issue has not been resolved.