Created
August 19, 2019 08:03
-
-
Save BRELID/d480baebee0b20fd02acde89de751eb9 to your computer and use it in GitHub Desktop.
Check if mongo db is running on Linux / Mac OS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Command on linux / mac os: | |
// Commande sur linux et mac os : | |
ps -ef | grep mongod | grep -v grep | wc -l | tr -d ' ' | |
// If result is 1, it's ok, mongo is running. | |
// Si vous avez 1 comme réponse, c'est que mongo est en train de tourner. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment