Install redis on amazon aws ec2 instance

First install the required dependencies for building redis

sudo yum -y update
sudo yum -y install gcc make

Download redis, unpackage it, go to the root directory and make it

wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make

If the make fails, try the following

cd deps
make hiredis jemalloc linenoise lua geohash-int
cd ..
make install

Start the redis server

redis-server

Start the redis server in the background and daemonize it

redis-server --daemonize yes

Check if the redis server is running

ps aux | grep redis-server
redis-cli ping

Shell into redis command line interface

redis-cli

Display keys stored in redis

KEYS *

References:
https://redis.io/topics/quickstart
https://unix.stackexchange.com/a/108311
https://redis.io/commands/keys

Search within Codexpedia

Custom Search

Search the entire web

Custom Search