This short setup will show you how to install redis-cli
on AWS EC2 without having to install the whole Redis Server.
On your EC2 instance run the following commands:
sudo yum install gcc
This may return an "already installed" message, but that's OK. After that, just run:
wget http://download.redis.io/redis-stable.tar.gz && \
tar xvzf redis-stable.tar.gz && \
cd redis-stable && make && \
sudo cp src/redis-cli /usr/local/bin/ && \
sudo chmod 755 /usr/local/bin/redis-cli && \
cd && echo "cleaning.." && \
rm -rf redis-stable* && \
echo "All done !"
In order to connect to your remote server, use something like:
$ redis-cli -h 192.268.34.32
References: