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.

Related questions

0 votes
2 answers
0 votes
1 answer
0 votes
2 answers
asked Oct 16, 2019 in Web Technology by Sammy (47.6k points)
0 votes
2 answers
0 votes
2 answers

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...