how to know if redis is installed and running code example Example: check that redis is running $ redis-cli ping PONG