diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-03-07 13:56:29 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-03-07 13:56:29 +0100 |
commit | 8d014f285254e3cdd150115532b2848ca71ac6ad (patch) | |
tree | 2129c7093fca1c6a6c30429ad6fe8a0fb1e32c89 /redis.sh | |
parent | a6f62f2b87d5dbba9e5a11448cea86c1aa006faf (diff) |
redis installation script added
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 |