首页 新闻 会员 周边 捐助

Redis端口占满

0
悬赏园豆:100 [已解决问题] 解决于 2022-08-15 17:46

Redis做了个本机假集群,6个,按照官方文档上操作的
但是限制发现只要启动就会把我Centos7上的所有端口无限制的占满全部都是Time Wait
tcp 0 0 localhost:60471 localhost:afs3-callback TIME_WAIT -
tcp 0 0 localhost:54572 localhost:afs3-vlserver TIME_WAIT -
tcp 0 0 localhost:52617 localhost:afs3-kaserver TIME_WAIT -
tcp 0 0 localhost:45671 localhost:afs3-vlserver TIME_WAIT -
tcp 0 0 localhost:46180 localhost:afs3-kaserver TIME_WAIT -
tcp 0 0 localhost:45451 localhost:afs3-kaserver TIME_WAIT -
tcp 0 0 localhost:58906 localhost:afs3-callback TIME_WAIT -
tcp 0 0 localhost:45744 localhost:afs3-callback TIME_WAIT -
tcp 0 0 localhost:33039 localhost:afs3-vlserver TIME_WAIT -
tcp 0 0 localhost:54379 localhost:afs3-kaserver TIME_WAIT -
tcp 0 0 localhost:53797 localhost:afs3-callback TIME_WAIT -
tcp 0 0 localhost:45601 localhost:afs3-kaserver TIME_WAIT -
tcp 0 0 localhost:47138 localhost:afs3-callback TIME_WAIT -
tcp 0 0 localhost:36684 localhost:afs3-callback TIME_WAIT -
tcp 0 0 localhost:55601 localhost:afs3-kaserver TIME_WAIT -
tcp 0 0 localhost:51976 localhost:afs3-kaserver TIME_WAIT -
tcp 0 0 localhost:53435 localhost:afs3-callback TIME_WAIT -
tcp 0 0 localhost:33325 localhost:afs3-kaserver TIME_WAIT -
tcp 0 0 localhost:34413 localhost:afs3-callback TIME_WAIT -
tcp 0 0 localhost:53975 localhost:afs3-vlserver TIME_WAIT -
tcp 0 0 localhost:37307 localhost:afs3-kaserver TIME_WAIT -
tcp 0 0 localhost:41836 localhost:afs3-callback TIME_WAIT -
这是其中一段,实际情况是全满

不存在的马飞飞的主页 不存在的马飞飞 | 初学一级 | 园豆:-82
提问于:2022-08-15 17:04
< >
分享
最佳答案
0

找到原因了
官方教程里面没有配置密码,但是我自己配置了,虽然每个节点都配置了密码但是没有配置masterauth
导致只要从节点被启动,就会疯狂的开端口,但是我也不知道是为什么,只能说是解决了
redis集群密码设置
修改所有Redis集群中的redis.conf文件加入:
masterauth 123456
requirepass 123456

不存在的马飞飞 | 初学一级 |园豆:-82 | 2022-08-15 17:45
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册