org.apache.rocketmq.remoting.exception.RemotingConnectException: connect to <172.17.128.11:30909> failed
时间: 2023-09-27 22:08:04 浏览: 139
Microsoft.NETRemoting:技术概述
引用提供了一种在RocketMQ中手动添加topic的方法,可以通过执行命令`sh mqadmin updateTopic -n XXX:9876 -b XXX:10911 -t ESOrderListTopic`来实现。然后,可以启动broker来测试发送和接收消息,命令为`nohup sh bin/mqbroker -n localhost:9876 & tail -f bin/nohup.out`。在发送和接收消息之前,需要告诉客户端name servers的地址。可以使用环境变量NAMESRV_ADDR来设置name servers的地址,命令为`export NAMESRV_ADDR=localhost:9876`。接下来,可以使用命令`sh bin/tools.sh org.apache.rocketmq.example.quickstart.Producer`来发送消息,使用命令`sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer`来接收消息。如果遇到了`org.apache.rocketmq.remoting.exception.RemotingConnectException: connect to <172.17.128.11:30909> failed`这个问题,可能是连接到指定的主机和端口失败导致的。您可以检查主机和端口是否正确,并确保RocketMQ服务正在运行。另外,也可以尝试使用`sh bin/mqshutdown broker`命令来关闭broker,然后再重新启动。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [rocketMQ 踩坑解决No route info of this topic和rocketmq:connect to 172.17.42.1:10911 failed](https://blog.csdn.net/weixin_44607885/article/details/103137280)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [linux安装RocketMQ](https://blog.csdn.net/huangbaokang/article/details/102832746)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文