客户端连接rocketmq报
No route info of this topic
sendDefaultImpl call timeout
这种错
首先更改 /conf/broker.conf 文件
brokerClusterName = DefaultCluster
brokerName = broker-a
brokerId = 0
brokerIP1=外网Ip
brokerIP2=外网Ip
deleteWhen = 04
fileReservedTime = 48
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH
#namesrvAddr=localhost:9876
autoCreateTopicEnable=true
然后启动的时候用
nohup sh mqbroker -n localhost:9876 -c ../conf/broker.conf autoCreateTopicEnable=true &
即可解决
autoCreateTopicEnable=true 是允许自动创建topic
rocketmq启动后,客户端无法连接,无法发消息
最新推荐文章于 2024-06-23 22:53:11 发布