M103 Chapter 1 Lab 1

No problem here @Parsurama_Reddy_84828. Remember the lecture where he mentions about --fork? Suggest you go through that video again for a refresher.

1 Like

Well I did , ,and i am running the below command
mongod --port 27000 --dbpath /data/db --logpath /data/log/mongod.log --fork --auth --bind_ip 192.168.103.100,127.0.0.1

And i get the below output !!
about to fork child process, waiting until server is ready for connections.
forked process: 2594
ERROR: child process failed, exited with error number 1
To see additional information in this output, start without the “–fork” option.

Does the /data/log/ folder exist? If it doesn’t, create it. If it does, look at the log file.

yes the folder exits and i have the mongo.log created too with permissions !

mongod --port 27000 --dbpath /data/db --logpath /data/log --fork --auth --bind_ip 192.168.103.100,127.0.0.1

Tthis works now !! i did it without specifying the log file but just the logpath !!

2 Likes

And now a new issue , i use windows 10 and i m connected to Virtual box via cmd prompt , i do the linux commands to touch and edit the mongod.conf located in /etc and now when i do ctrl esc to actually use wq! to save , it does not really do anything !!

Am I doing something wrong here ?

New Problem = New Topic :slight_smile:

Suggest you create a new Topic so that this old thread doesn’t become unnecessarily long.