Skip to content

Instantly share code, notes, and snippets.

@tclancy
Last active December 31, 2015 04:09
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 tclancy/7932353 to your computer and use it in GitHub Desktop.
Save tclancy/7932353 to your computer and use it in GitHub Desktop.
Updating Vagrant Box's Redis
#! /bin/bash
mkdir ~/sources
cd ~/sources
sudo apt-get install tcl8.5
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
sudo make && make test
sudo cp src/redis-server /usr/local/bin
sudo cp src/redis-cli /usr/local/bin
sudo mv /etc/redis/redis.conf /etc/redis/redis.conf.original
wget https://gist.github.com/brandonhamric/6047256/raw/9fafacf874ea8c3a8d43fc054e5b0fd47862d3d4/redis-server.conf
sudo cp redis-server.conf /etc/init
sudo /etc/init.d/redis-server stop
sudo rm /usr/bin/redis-server
sudo rm /usr/bin/redis-cli
sudo cp src/redis-server /usr/bin/
sudo cp src/redis-cli /usr/bin/
sudo start redis-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment