好吧,据说Redis Setninels现在和TLS一起工作。我让主人和奴隶都能很好的复制出震撼效果。然而,我无法让哨兵们与彼此以及大师进行交流。
我有一个主人,两个奴隶和三个哨兵
我的stunnel.conf示例
pid = /run/stunnel.pid
output = /etc/stunnel/stunnel.log
[Redis server]
cert = /etc/stunnel/ABC_private.pem
accept = xxx.xx.160.77:26280
connect = 127.0.0.1:26280
[Client XYZ Redis Server]
client=yes
cert = /etc/stunnel/XYZ_private.pem
accept = 127.0.0.1:8000
connect = xxx.xx.161.78:6480
# SENTINEL SERVERS
[Client 123 Sentinel Server]
client=yes
cert = /etc/stunnel/123_private.pem
accept = 127.0.0.1:8001
connect = xxx.xx.160.77:26280我的Sentinel配置示例
protected-mode no
bind 127.0.0.1
port 26280
sentinel monitor redisftdev 127.0.0.1 8002 2当我在本地前哨上运行以下命令时:
127.0.0.1:26280>前哨redisftdev (空列表或集合) 127.0.0.1:26280>
我可以毫无问题地连接到远程Sentinel,但我当然会得到相同的响应
127.0.0.1:8005>前哨redisftdev (空列表或集合)
发布于 2018-03-07 01:46:48
抱歉,这是个新手--好的,我知道了。是的,Sentinel与Stunnel合作。我使用的是4.02。我没有宣布我的哨兵和奴隶的港口。特别是-前哨公告-端口8003
其中,端口8003是stunnel.conf accept = 127.0.0.1:8003 connect = 12.34.56.7:6379中客户端绑定的127.0.0.1端口
slaves the redis.conf slave-announce-port 8000也是如此
https://stackoverflow.com/questions/49016378
复制相似问题