check which port redis is runnning on code example Example: check that redis is running $ redis-cli ping PONG