redis server vs redis working code example Example 1: start redis server $ redis-server Example 2: check that redis is running $ redis-cli ping PONG