redis-cli -h cache01.example.com -p 6380 PING

Category: Databases & SQL

redis-cli -h cache01.example.com -p 6380 PING

Ping a Redis server on a custom host and port

PING returns PONG if the server is reachable; -h and -p override the default 127.0.0.1:6379. Add REDISCLI_AUTH or -a for password-protected instances. Related: INFO for server details.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.