Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (50.2k points)

I have successfully installed MongoDB a few days back on my Mac and am not sure how I installed, but now how do I check if MongoDB is up and running in my system?

1 Answer

0 votes
by (107k points)
edited by

You can simply run the following command in your terminal:

ps -ef | grep mongod | grep -v grep | wc -l | tr -d ' '

This command will show you various processes run by mongodb

And if you want to see the status of mongodb then just write the following command in your terminal, this will show you the current status of mongo.

mongo

If you want to learn more about MongoDB then go through this MongoDB course for more insights.

MongoDB is an important part of full-stack development. Enroll in this Full Stack Developer Training to start your journey in this field.

1.2k questions

2.7k answers

501 comments

693 users

Browse Categories

...