This setup will help you in setting up redis on AWS. Follow these steps
1. Sign up for an Amazon Web Services account.
2. Set up an EC2 instance (10 minutes). Be sure to select the Amazon Linux.
3. Leave the AWS Dashboard open in your browser.
4. Use SSH to connect to the server.
You should now be at the Linux command line of your EC2 instance, and ready to begin installing Redis.
First, we will update server and install the toolchain.
sudo yum -y update
sudo yum -y install gcc make
Download and install Redis 3.2. Double check Redis for the latest link. If you get an error, use command “ls” to check the file name.
sudo wget http://download.redis.io/releases/redis-3.2.0.tar.gz
sudo tar xzf redis-3.2.0.tar.gz
sudo rm -f 3.2.0.tar.gz
You will need some vim basics for this part.
pressing “:set number” will show the line numbers
pressing “i” will allow you to insert text (edit)
pressing “esc” will stop inserting and allow other vim commands
pressing “:wq” followed by enter will write then quit vim
Open the config file
sudo vi /etc/redis/6379.conf
Edit the file, using vim, and confirm the options are set as shown. Line numbers may be shown in the bottom right hand side of the vim window. Don’t include the line numbers as you edit!