Error in mongod launching

In terminal vagrant103@ I entered mongo & mongod after that the terminal struck and no more commands working on that and i opened another terminal again i connected to vagrant env ,mongo & mongod .now i am trying launch mongod

i was confused after connecting vagrant ssh command .

thanking you

You are running validate command at Mongo prompt
Please run at OS prompt

Mongod is used to start mongo daemon
Mono is used to connect
1.Make sure your vagrant status is up and running
2.From your host machine vagrant ssh
3.Start mongod
4.Connect using mongo

–fork is used to run mongod in background and prompt returns
If you are not using --fork leave that session and open another session and just connect with mongo
You need not start mongod every time you open a session

Also db,show dbs are mongo commands but you are running them at Unix prompt
Please run at mongo prompt.It will work

1 Like

Hi @venkata_97387,

In addition to @Ramachandra_37567,

You need to be familiar with three things : -

  1. Vagrant prompt

  2. mongo shell

  3. Your Operating System prompt


This is your OS prompt where you run the vagrant related commands such as vagrant up and vagrant ssh to get inside your virtual machine.


This is your vagrant prompt and this is where you create the directories used in the labs, set permissions or run the validations scripts. This is where you also run the mongod, mongo or
mongoimport commands.

MongoDB Enterprise >

This is your mongo shell and you run all the MongoDB related commands here.

Please feel free to get back to us if something is not clear or I have failed to mention something.

Hope it helps!

Shubham Ranjan
Curriculum Services Engineer