org.apache.rocketmq.remoting.exception.RemotingConnectException: connect to <172.17.0.3:10909> faile
brokerClusterName = DefaultCluster
brokerName = broker-a
brokerId = 0
deleteWhen = 04
fileReservedTime = 48
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH
brokerIP1 = 192.168.119.128
添加 brokerIP1 = linux的ip地址
ip地址是自己 VM 下Linux的ip地址
安装步骤
docker pull rocketmqinc/rocketmq:4.4.0
mkdir -p /mnt/docker/RocketMQ/conf
vi /mnt/docker/RocketMQ/conf/broker.conf
--------------------------------------------------
brokerClusterName = DefaultCluster
brokerName = broker-a
brokerId = 0
deleteWhen = 04
fileReservedTime = 48
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH
brokerIP1 = {本地公网 IP}
-------------------------------------------------
docker run -d -p 9876:9876 -v /mnt/docker/RocketMQ/data/namesrv/logs:/root/logs -v /mnt/docker/RocketMQ/data/namesrv/store:/root/store --name rmqnamesrv -e "MAX_POSSIBLE_HEAP=100000000" rocketmqinc/rocketmq:4.4.0 sh mqnamesrv
docker run -d -p 10911:10911 -p 10909:10909 -v /mnt/docker/RocketMQ/data/broker/logs:/root/logs -v /mnt/docker/RocketMQ/data/broker/store:/root/store -v /mnt/docker/RocketMQ/conf/broker.conf:/opt/rocketmq-4.4.0/conf/broker.conf --name rmqbroker --link rmqnamesrv:namesrv -e "NAMESRV_ADDR=namesrv:9876" -e "MAX_POSSIBLE_HEAP=200000000" rocketmqinc/rocketmq:4.4.0 sh mqbroker -c /opt/rocketmq-4.4.0/conf/broker.conf
启动是先启动 namesrv 在启动 bocker
管控台是在外部连接的