diff options
Diffstat (limited to 'redis.sh')
-rw-r--r-- | redis.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/redis.sh b/redis.sh new file mode 100644 index 0000000..9878223 --- /dev/null +++ b/redis.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +echo "Installing Redis database" +. /etc/profile +. ./config +dir=`pwd` +cd /tmp +wget -O - "http://redis.googlecode.com/files/redis-2.2.2.tar.gz" | tar zxv +cd redis-2.2.2 +make install +echo "vm.overcommit_memory = 1" >> /etc/sysctl.conf +cd $dir |