how to check if mongodb is up or down code example Example: how to check mongodb status in ubuntu sudo systemctl status mongodb