インストール
$ sudo amazon-linux-extras install epel -y
$ sudo yum install -y gcc jemalloc-devel openssl-devel tcl tcl-devel
$ sudo wget http://download.redis.io/redis-stable.tar.gz
$ sudo tar xvzf redis-stable.tar.gz
$ cd redis-stable
$ sudo make BUILD_TLS=yes
使ってみる
$ src/redis-cli -h redis-no-auth.******.0001.apne1.cache.amazonaws.com -p 6379
redis-no-auth.******.0001.apne1.cache.amazonaws.com:6379> set key1 "value1"
OK
redis-no-auth.******.0001.apne1.cache.amazonaws.com:6379> get key1
"value1"
$ src/redis-cli -h redis-cluster-no-auth.******.clustercfg.apne1.cache.amazonaws.com -c -p 6379
redis-cluster-no-auth.******.0001.apne1.cache.amazonaws.com:6379>
$ src/redis-cli -h clustercfg.redis-cluster-auth.******.apne1.cache.amazonaws.com -c -p 6379 --tls -a 1234567890123456
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
clustercfg.redis-cluster-auth.******.apne1.cache.amazonaws.com:6379>