how to check whether redis is running or not code example Example: check that redis is running $ redis-cli ping PONG