linux query redis status code example Example 1: check that redis is running $ redis-cli ping PONG Example 2: install redis sudo systemctl restart redis.service