blob: 63e2f86aa36d1238b020be0697870eca01fa2f1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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
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
|