使用docker-compose搭建redis集群环境
主题:
主机只有一台需要搭建三主三从的redis集群
开盘:
第一步:创建目录分发redis.conf; redis目录里创建data、conf目录,将redis.conf文件分别拷贝到conf目录里;修改redis.conf文件的port(从7001-7006)
redis.conf
#Redis configuration for testing.
always-show-logo yes
notify-keyspace-events KEA
daemonize no
pidfile /var/run
原创
2021-09-07 11:26:23 ·
645 阅读 ·
0 评论