1. 程式人生 > >ubuntu14.04 安裝redis5.0

ubuntu14.04 安裝redis5.0

安裝方法:

wget http://download.redis.io/releases/redis-5.0.0.tar.gz
tar xvf redis-5.0.0.tar.gz
cd redis-5.0.0/src
make 
make install
cp ../redis.conf /usr/local/bin

修改redis.conf中如下引數:

daemonize yes

啟動:

cd /usr/local/bin/

./redis-server redis.conf

 測試是否安裝成功:

cd /usr/local/bin
./redis-cli -h 127.0.0.1
127.0.0.1:6379> 
127.0.0.1:6379> 
127.0.0.1:6379> keys *
(empty list or set)

 出現如上狀態,表示redis已經安裝成功!