项目中用到了延迟消息队列,记录下一win10
下rocketmq
的安装
win10 + rocketmq4.7.0
ROCKETMQ_HOME
,值为rocketmq
压缩包解压路径,路径中不能包含空格错误: 找不到或无法加载主类 Files\rocketmq\bin\Files\rocketmq\lib
rocketmq
还需配置jdk环境变量 -> JAVA_HOME
cmd
窗口rocketmq/bin
目录下执行start mqnamesrv
cmd
窗口rocketmq/bin
目录下执行start mqbroker -n localhost:9876 autoCreateTopicEnable=true
cmd
终端,也可以使用 mqshutdown
脚本broker
mqshutdown broker
namesrv
mqshutdown namesrv
NAMESRV_ADDR
:set namesrv_addr=localhost:9876
rocketmq/bin
目录下执行:tools org.apache.rocketmq.example.quickstart.Producer
rocketmq/bin
目录下执行:RocketMQ Console
是RocketMQ
提供的可视化管理工具,方便可视化的操作,下载地址:https://github.com/apache/rocketmq-externals/tree/release-rocketmq-console-1.0.0rocketmq-console\src\main\resources\application.properties
如下:rocketmq-console
主目录下运行打包命令:mvn clean package -Dmaven.test.skip=true
rocketmq-console\target
目录下运行启动命令:java -jar rocketmq-console-ng-1.0.0.jar
http://localhost:8088
原文:https://www.cnblogs.com/maggieq8324/p/15186856.html