About mongoDB Startup

  mongodb, question

I started mongodb with a command under linux and ran it in the background.

./mongod --fork  --dbpath ../blog --logpath ../logs/mongoDb.log --logappend --port 22222

Then I want to look at the data in the database now and find that one link is not available. I don’t know why


Do you want me to shut down the database every time I look at the data, log in again and start again?

He is directly looking for the data/db directory, but I have already started mongo, which specifies the blog directory. shouldn’t I be looking for the blog directory? Why did you go to data/db?



Also reported wrong

./mongod --fork --dbpath ../blog --logpath ../logs/mongoDb.log --logappend --port 22222


Try it this way