how to check if redis works code example Example 1: check redis server status redis-cli ping Example 2: check that redis is running $ redis-cli ping PONG