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