summaryrefslogtreecommitdiff
path: root/redis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redis.sh')
-rw-r--r--redis.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/redis.sh b/redis.sh
index 9878223..63e2f86 100644
--- a/redis.sh
+++ b/redis.sh
@@ -9,4 +9,8 @@ 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
+mkdir -p /opt/redis
+echo "daemonize yes" > /opt/redis/redis.conf
+echo "dir `pwd`" >> /opt/redis/redis.conf
+edis-server /opt/redis/redis.conf
cd $dir