redis-cli
tags :
Redis CLI #
ref In interactive mode, redis-cli has basic line editing capabilities to provide a familiar typing experience.
Command line usage #
SET and GET keys #
redis-cli
127.0.0.1:6379> SET mykey "Hello, Redis!"
# OK
127.0.0.1:6379> GET mykey
"Hello, Redis!"
connect to remote redis server #
redis-cli -h XXX.XXX.XXX.XXX -p YYYY
Redis with SSL #
#
git clone http://github.com/antirez/redis.git
cd redis && git checkout 7.2
make redis-cli BUILD_TLS=yes
sudo install -m 755 src/redis-cli /usr/local/bin/
# on Oracle Linux
redis-cli --tls xyz.redis.me-jeddah-1.oci.oraclecloud.com -p 6379
How I solved connection reset by peer issue? #
followed the instruction mentioned here on oracle support The connection was getting reset by the peer(redis database server) because it was expecting the connection to be over SSL
solution mentioned