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
原文地址:http://blog.51cto.com/395469372/2120908
时间: 2024-11-09 16:50:36