主要是对自己之前出现过的一些问题进行总结,这次主要是针对RabbitMQ的网络方面进行讨论。
在搭建RabbitMQ的集群过程中,出现了端口报错的情况,在CentOS中默认的4396端口并不是开放的,还有可能开启4396端口后,默认的25672端口也需要进行开放。
CentOS7默认的iptables管理是默认的wirewalld,为了方便管理,可以将其修改为传统的方式
systemctl stop firewalld
systemctl mask firewalld
yum install iptables-services //安装iptables-service安装包
systemctl enable iptables //开机启动iptables
systemctl [stop|start|restart] iptables
service iptables save
service iptables restart //systemctl restart iptables
如果需要修改ipta

本文总结了RabbitMQ集群搭建中遇到的端口问题,主要讨论了CentOS下4396和25672端口的开放,以及如何从wirewalld切换到iptables进行更方便的管理。通过修改iptables设置或配置文件,确保RabbitMQ节点能正常运行,避免端口启动问题。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



