centos7.3 安装redis-4.0.7

前端之家收集整理的这篇文章主要介绍了centos7.3 安装redis-4.0.7前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

centos7安装redis-4.0.7

解压

tar xvf redis-4.0.7.tar.gz  -C /usr/local/src

编译

cd /usr/local/src/redis-4.0.7/
make PREFIX=/usr/local/redis install

准备

mkdir /usr/local/redis/{log,data,conf}
cat /usr/local/redis/conf/redis.conf 

daemonize yes 
bind 0.0.0.0
#logfile "/usr/local/redis/log/redis.log"
#timeout 0

启动

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

登陆

ps -ef | grep redis
/usr/local/redis/bin/redis-cli -h 10.13.2.66
原文链接:https://www.f2er.com/centos/374279.html

猜你在找的CentOS相关文章