mac安装rocketmq教程
参考链接https://blog.csdn.net/feibendexiaoma/article/details/106173153
里面坑很多
脱坑参考链接https://blog.csdn.net/weixin_35806032/article/details/114773585
不好使就看日志,环境变量必须要配
启动命令
NameServer
nohup sh mqnamesrv &
Borker
nohup sh mqbroker -n localhost:9876 &
使用命令参考路径 cd rocketmq/rocketmq-all-4.9.0-source-release/distribution/target/rocketmq-4.9.0/rocketmq-4.9.0/bin
查看服务启动命令 jps
发送消息
sh tools.sh org.apache.rocketmq.example.quickstart.Producer
接收消息
sh tools.sh org.apache.rocketmq.example.quickstart.Consumer
关闭命令
关闭NameServer
sh mqshutdown namesrv
关闭Borker
sh mqshutdown broker