#! /bin/bash
Cd/usr/local/src
wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
Tar zxvf tcl8.6.1-src.tar.gz-c/usr/local/
CD cd/usr/local/tcl8.6.1/unix/
./configure
Make
Make install
Cd/usr/local/src
Tar zxvf redis-2.8.19.tar.gz
CD redis-2.8.19
Make
Make install
Mkidr-p/usr/local/redis/bin
Mkidr-p/usr/local/redis/etc
Mkidr-p/usr/local/redis/var
Cd/usr/local/bin
CP-PF redis-server/usr/local/redis/bin/
CP-PF redis-check-dump/usr/local/redis/bin/
CP-PF redis-sentinel/usr/local/redis/bin/
CP-PF redis-check-aof/usr/local/redis/bin/
CP-PF redis-cli/usr/local/redis/bin/
Cp-pf/usr/local/src/redis-2.8.19/redis.conf/usr/local/redis/etc
touch/etc/profile.d/redis.sh
Cat >/etc/profile.d/redis.sh << EOF
Export path= $PATH:/usr/local/redis/bin
Eof
Mv/usr/local/bin/redis-cli/usr/local/bin/redis-cli.bak
Mv/usr/local/bin/redis-server/usr/local/bin/redis-server.bak
Mv/usr/local/bin/redis-check-dump/usr/local/bin/redis-check-dump.bak
Mv/usr/local/bin/check-aof/usr/local/bin/check-aof.bak
Mv/usr/local/bin/tclsh8.6/usr/local/bin/tclsh8.6.bak
Mv/usr/local/bin/benchmark/usr/local/bin/benchmark.bak
Mv/usr/local/bin/redis-sentinel/usr/local/bin/redis-sentinel.bak
This article is from the "Common Documents" blog, so be sure to keep this source http://yujianglei.blog.51cto.com/7215578/1599009
REDIS-2.8.19.TAR.GZ Installation