redis5.0.0 installation

1, download the installation package

wget  http://download.redis.io/releases/redis-5.0.0.tar.gz

2, extract

takes -zxvf Redis-5.0.0.tar.gz

3. Compile

cd repeat-5.0.0 /

make PREFIX=/usr/local/redis install

4, modified copy of the configuration file

cp redis.conf /usr/local/redis/bin

vim /usr/local/redis/bin/redis.conf

modify

daemonize   yes     

bind 0.0.0.0  

5, add the environment variable

export REDIS_HOME=/usr/local/redis

export PATH=$PATH:$REDIS_HOME/bin

6, start

redis-server /usr/local/redis/bin/redis.conf # start

7. Verify

cd / usr / local / Redis
./bin/redis-cli # verification

 

Guess you like

Origin www.cnblogs.com/wangyong-blog/p/10040827.html