check if redis is open on server code example Example: check that redis is running $ redis-cli ping PONG