Skip to content

Instantly share code, notes, and snippets.

@jmaciasluque
Forked from dstroot/install-redis.sh
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmaciasluque/3f15df1249c35bd1d1e9 to your computer and use it in GitHub Desktop.
Save jmaciasluque/3f15df1249c35bd1d1e9 to your computer and use it in GitHub Desktop.
#!/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