centos6.5安装redis3.2.9

https://redis.io/download 查看版本

1.获得压缩包文件 wget http://download.redis.io/releases/redis-3.2.9.tar.gz

2. 解压 tar xzf redis-3.2.9.tar.gz

3.cd redis-3.2.9

4.make && make install (要安装gcc :yum install gcc)

5.redis-server 或者 redis-server --protected-mode no (默认为远程连接保护,这里是设置允许远程连接)

后台运行 nohup  redis-server > $CURRENT_PATH/log.out 2>&1 &

 

测试连接

cd src/

./redis-cli

连接成功

 

 

 

菜鸟教程

https://www.runoob.com/redis/redis-install.html

posted @ 2019-10-09 14:17  wullll  阅读(315)  评论(0编辑  收藏  举报