blob: 830c6c4496731e93198c911b79127674afa69f80 (
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
redis-server /opt/redis/redis.conf
cd $dir
|