brew install redis
redis-cli <hostname>
hostname:6379>ping
PONG
Note, a quick way of testing without installing redis
is to use nc
. i.e.
1 2 |
$ (printf "PING\r\n";) | nc <hostname> 6379 +PONG |
You can also do this with curl
.
See:
- https://redis.io/topics/quickstart
- https://medium.com/@petehouston/install-and-config-redis-on-mac-os-x-via-homebrew-eb8df9a4f298
- https://stackoverflow.com/questions/33243121/abuse-curl-to-communicate-with-redis