1. 程式人生 > >centos 安裝redis 5

centos 安裝redis 5

https://redis.io/download下載最新stable版,當前最新版為redis-5.0.0.tar.gz

cd /usr/local/src && wget http://download.redis.io/releases/redis-5.0.0.tar.gz && tar zxvf redis-5.0.0.tar.gz && cd redis-5.0.0/src

./redis-server /usr/local/src/redis-5.0.0/redis.conf
ps -aux | grep redis
kill -9 18714

mkdir /etc/redis
cp /usr/local/src/redis-5.0.0/redis.conf /etc/redis/6379.conf
cp /usr/local/src/redis-5.0.0/utils/redis_init_script /etc/init.d/redis
chkconfig redis on
service redis start