Replies: 1 comment
-
尝试过切换9876端口发送消息也是失败,后来使用rocketmq-spring-boot-starter依赖(2.3.0版本)的DefaultMQProducer发送消息,可以使用9876端口发送进行自动创建Topic,8081端口会出现send request to IP:8081 failed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
如题,在搭建RocketMQ之后测试消息发送功能,使用rocketmq-client-java(5.0.7版本)依赖中提供的方法创建生产者对象,发送消息时指定了一个不存在的Topic,会出现No topic route info in name server for the topic: xxxx的异常信息
namesrv启动命令
docker run -d --name rmqnamesrv -p 9876:9876 --network rocketmq file.hrkj.fit:10012/hrkj/apache/rocketmq:5.2.0 sh mqnamesrv
broker-proxy启动命令
docker run -d --name rmqbroker --network rocketmq -p 10912:10912 -p 10911:10911 -p 10909:10909 -p 8080:8080 -p 8081:8081 -e "NAMESRV_ADDR=rmqnamesrv:9876" -v /www/wwwroot/docker/rocketmq/conf/broker.conf:/home/rocketmq/rocketmq-5.2.0/conf/broker.conf file.hrkj.fit:10012/hrkj/apache/rocketmq:5.2.0 sh mqbroker --enable-proxy -c /home/rocketmq/rocketmq-5.2.0/conf/ broker.conf
broker.conf配置
endpoint: 公网IP:8081
Beta Was this translation helpful? Give feedback.
All reactions