Redis(一):centos下安装。

yum install gcc-cc++
wget http://download.redis.io/releases/redis-4.0.2.tar.gz
cp redis-4.0.2.tar.gz  /usr/local
cd /usr/local
tar -xvf redis-4.0.2.tar.gz
cd redis-4.0.2
make
make PREFIX=/usr/local/redis/redis install
cd /usr/local/redis/redis/bin
./redis-server

客户端连接:

./redis-cli

 

posted @ 2018-11-08 20:41  幸福安康  阅读(195)  评论(0编辑  收藏  举报