cd /usr/local/src/
wget http://download.redis.io/releases/redis-3.2.2.tar.gz
tar xzf redis-3.2.2.tar.gz
cd redis-3.2.2
make
cd src
make install
mkdir -p /usr/local/redis/bin
mkdir -p /usr/local/redis/etc
cd /usr/local/src/redis-3.2.2
mv redis.conf /usr/local/redis/etc/
cd /usr/local/src/redis-3.2.2/src
cp mkreleasehdr.sh redis-benchmark redis-check-aof redis-check-rdb redis-cli redis-sentinel redis-server redis-trib.rb /usr/local/redis/bin/
vim /usr/local/redis/etc/redis.conf
将 daemonize no
改为daemonize yes
/usr/local/redis/bin/redis-server /usr/local/redis/etc/redis.conf
pip install redis
网友评论