[Solved] Rocketmq installation error: org.apache.rocketmq.remoting.exception.remotingconnectexception: connect to failed

1. Rocketmq org.apache.rocketmq.remoting.exception.remotingconnectexception: connect to failed
solution: modify the broker configuration in the server and add the server IP (public network)

vim /home/prod/rocketmq-all-4.3.0/distribution/target/apache-rocketmq/conf/broker.conf

add a new line
brokerIP1=xx.xx.xx.xx  # your public IP

Then restart the process, restart the broker must use the configuration file to start
nohup sh bin/mqbroker -n localhost:9876 -c conf/broker.conf &

Meanwhile, if you use alicloud, you must release port 10909, dashboard port 9876 in the security rules


Read More: