-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathequip_redis.sh
executable file
·42 lines (30 loc) · 1.07 KB
/
equip_redis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
#
# Ubuntu Equip
# Redis Equip
# Licence: MIT
# with help from http://www.denofubiquity.com/nosql/412/
wget --no-check-certificate https://github.com/aglover/ubuntu-equip/raw/master/equip_base.sh && bash equip_base.sh
sudo apt-get update -y
sudo apt-get install tcl8.5
# wget http://redis.googlecode.com/files/redis-2.4.17.tar.gz
wget http://redis.googlecode.com/files/redis-2.6.10.tar.gz
# mv redis-2.4.17.tar.gz redis-stable.tar.gz
tar xvzf redis-2.6.10.tar.gz
cd redis-2.6.10
make
make test
sudo make install
cd ..
wget --no-check-certificate https://raw.github.com/aglover/ubuntu-equip/master/etc/redis.conf
sudo mv redis.conf /etc/redis.conf
wget https://github.com/ijonas/dotfiles/raw/master/etc/init.d/redis-server
sudo mv redis-server /etc/init.d/redis-server
sudo chmod +x /etc/init.d/redis-server
sudo mkdir -p /var/lib/redis
sudo mkdir -p /var/log/redis
sudo useradd --system --home-dir /var/lib/redis redis
sudo chown redis.redis /var/lib/redis
sudo chown redis.redis /var/log/redis
sudo update-rc.d redis-server defaults
sudo /etc/init.d/redis-server start