-
-
Save jmaciasluque/3f15df1249c35bd1d1e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/ | |
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server | |
############################################### | |
# To use: | |
# curl https://gist.githubusercontent.com/jmaciasluque/3f15df1249c35bd1d1e9/raw/88540b9d8c45b860d13b9f42193136cee9321690/install-redis.sh > install-redis.sh | |
# chmod 777 install-redis.sh | |
# ./install-redis.sh | |
############################################### | |
echo "*****************************************" | |
echo " 1. Prerequisites: Install updates, set time zones, install GCC and make" | |
echo "*****************************************" | |
sudo yum install gcc wget | |
echo "*****************************************" | |
echo " 2. Download, Untar and Make Redis 2.6" | |
echo "*****************************************" | |
cd /usr/local/src | |
sudo wget http://redis.googlecode.com/files/redis-2.6.0-rc5.tar.gz | |
sudo tar xzf redis-2.6.0-rc5.tar.gz | |
sudo rm redis-2.6.0-rc5.tar.gz -f | |
cd redis-2.6.0-rc5 | |
sudo make | |
echo "*****************************************" | |
echo " 3. Create Directories and Copy Redis Files" | |
echo "*****************************************" | |
sudo mkdir /etc/redis /var/lib/redis | |
sudo cp src/redis-server src/redis-cli /usr/local/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment