Created
May 1, 2013 04:08
-
-
Save t-cyrill/5493682 to your computer and use it in GitHub Desktop.
Install Redis
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 | |
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