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