Still having --fork issues

Help!! I have been faking my way around the fork option, but I would really like to know the correct way to resolve it. I have:
vagrant@m103:~ dir csrs_1.conf data vagrant@m103:~

Where does var/mongodb/ get created? (I am sure it was explained in a prior lesson, but can’t locate it at the moment)

We create the dirs
It will be under /var

From notes:
Note that the mongod does not automatically create the dbPath directory. You will need to create this yourself:
mkdir /var/mongodb/db/{1,2,3}

–fork is used to run mongod in background
try to run without --fork option to see the errors on your screen on why it is failing(mostly missing dirs,permission issues,wrong paths)

Ok, it tells me that directory already exists. Something is still wrong:

Last login: Sat Apr 27 05:26:33 2019 from
vagrant@m103:~ mongod --config /shared/csrs_1.conf vagrant@m103:~ mongod --config /shared/csrs_1.conf
vagrant@m103:~ mongod --config /shared/csrs_2.conf vagrant@m103:~ mongod --config /shared/csrs_3.conf
vagrant@m103:~$ mongo --port 26001
MongoDB shell version v3.6.12
connecting to: mongodb://
2019-04-27T05:39:55.202+0000 W NETWORK [thread1] Failed to connect to, in(checking socket for error after poll), reason: Connection refused
2019-04-27T05:39:55.205+0000 E QUERY [thread1] Error: couldn’t connect to server, connection attempt failed :
exception: connect failed

I feel like I missed something in the install or something? What is the policy for repeating a course?

Hi @debra_27516,

You just need to register for the next offering. I can see you are already registered for that. It will start from 14 May 2019.


I did :slight_smile: Now to uninstall everything so I can start fresh. Hopefully, I will see where I went wrong.