borker启动

broker启动发现10911端口是docker的ip

connect to x.x.x.x:10911 failed_docker

然后rocketmq-console也报错

rocketmq-console连接x.x.0.1:10911,连接报错

connect to x.x.x.x:10911 failed_docker_02

brokerIP1

# 通过这个取到了x.x.0.1的ip
String brokerIP1 = RemotingUtil.getLocalAddress()

connect to x.x.x.x:10911 failed_rocketmq_03

解决

新建broker.properties

brokerIP1 = 192.168.5.1

启动

nohup sh bin/mqbroker -n 192.168.5.1:9876 -c broker.properties & tail -f ~/logs/rocketmqlogs/broker.log