Skip to content

Instantly share code, notes, and snippets.

@t-cyrill
Created May 1, 2013 04:08
Show Gist options
  • Save t-cyrill/5493682 to your computer and use it in GitHub Desktop.
Save t-cyrill/5493682 to your computer and use it in GitHub Desktop.
Install Redis
#!/bin/bash
cd /tmp
wget http://redis.googlecode.com/files/redis-2.6.13.tar.gz
tar xf redis-2.6.13.tar.gz
cd redis-2.6.13
make
cp src/redis-server src/redis-cli /usr/local/bin/
mkdir /etc/redis
mkdir /var/redis
cp utils/redis_init_script /etc/init.d/redis_6379
cp redis.conf /etc/redis/6379.conf
mkdir /var/redis/6379
sed -i -e s/daemonize no/daemonize yes/ /etc/redis/6379.conf
update-rc.d redis_6379 defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment