name server 启动 ip修改为你服务器对应公网ip
nohup ./bin/mqnamesrv -n 你的公网IP:9876 &
不能写localhost
在conf/broker.conf 中 加入 brokerIP1=你的公网IP
broker 启动
nohup sh bin/mqbroker -n 你的公网IP:9876 -c conf/broker.conf autoCreateTopicEnable=true &
转载:https://blog.csdn.net/lw5885799/article/details/88646051