代码语言:shell复制
cd /usr/local
yum install gcc-c
wget http://download.redis.io/releases/redis-4.0.2.tar.gz
tar -zxvf redis-4.0.2.tar.gz
cd redis-4.0.2
make
make PREFIX=/usr/local/redis install
cd /usr/local/redis-4.0.2
cp ./redis.conf /usr/local/redis/bin/
cd /usr/local/redis/bin
./redis.server redis.conf
redis.conf
代码语言:javascript复制#bind 127.0.0.1
protected-mode no
port 6379
daemonize no
supervised no
databases 3