Windows RocketMQ使用方法经验总结
修改rocketmq/conf中broker.conf,增加
autoCreateTopicEnable=true
brokerIP1 = 127.0.0.1
namesrvAddr = 127.0.0.1:9876
进入rocketmq/bin
start mqnamesrv.cmd
Start-Process -FilePath "mqbroker.cmd" -ArgumentList "-n 127.0.0.1:9876", "autoCreateTopicEnable=true"
rocketmq-console已经变成了rocketmq dashboard,但是application.yml中的data path还是rocketmq console
运行docker的命令
docker run -d --name rocketmq-dashboard -e "JAVA_OPTS=-Drocketmq.namesrv.addr=127.0.0.1:9876" -p 8080:8080 -t apacherocketmq/rocketmq-dashboard:latest
但是不知道为什么没法连接到127.0.0.1:9876,所以还是用vscode装Spring插件直接启动项目