受限于公司服务器,本专栏暂时使用windows版本
一.安装rocketmq
1.git上下载项目 https://github.com/apache/rocketmq
2.进入下载目录,在地址栏输入cmd
3.然后执行 下列命令打包
mvn -Prelease-all -DskipTests clean install
4.找到window版本 。zip就是window版本 tar.gz为linux版本
5 系统环境变量配置
变量名:ROCKETMQ_HOME
变量值:MQ解压路径\MQ文件夹名
6.启动mqnamesrv ,进入bin文件夹,地址栏输入cmd 执行
start mqnamesrv.cmd
7.启动mqbroker
先编辑bin下的runbroker.cmd文件,改%CLASSPATH%"为"%CLASSPATH%""
然后执行
start mqbroker.cmd -n 127.0.0.1:9876 autoCreateTopicEnable=true
1.git上下载 地址:https://github.com/apache/rocketmq-externals
2. 进入F:\rocketmq-externals-master\rocketmq-console
3.修改配置文件
进入F:\rocketmq-externals-master\rocketmq-console\src\main\resources\application.properties
修改
1. server.contextPath= 2. 3. #修改面板服务启动的端口号 4. server.port=8080 5. 6. ### SSL setting 7. #server.ssl.key-store=classpath:rmqcngkeystore.jks 8. #server.ssl.key-store-password=rocketmq 9. #server.ssl.keyStoreType=PKCS12 10. #server.ssl.keyAlias=rmqcngkey 11. 12. #spring.application.index=true 13. spring.application.name=rocketmq-console 14. spring.http.encoding.charset=UTF-8 15. spring.http.encoding.enabled=true 16. spring.http.encoding.force=true 17. logging.config=classpath:logback.xml 18. #if this value is empty,use env value rocketmq.config.namesrvAddr NAMESRV_ADDR | now, you can set it in ops page.default localhost:9876 19. 20. #修改监听的rocket服务端口 21. rocketmq.config.namesrvAddr=127.0.0.1:9876 22. 23. 24. #if you use rocketmq version < 3.5.8, rocketmq.config.isVIPChannel should be false.default true 25. 26. #修改为false 否则会报错rocketmq-console connect to<192.168.99.1:10909> failed 27. rocketmq.config.isVIPChannel= false 28. 29. 30. #rocketmq-console's data path:dashboard/monitor 31. rocketmq.config.dataPath=/tmp/rocketmq-console/data 32. #set it false if you don't want use dashboard.default true 33. rocketmq.config.enableDashBoardCollect=true 34. #set the message track trace topic if you don't want use the default one 35. rocketmq.config.msgTrackTopicName= 36. rocketmq.config.ticketKey=ticket 37. 38. #Must create userInfo file: ${rocketmq.config.dataPath}/users.properties if the login is required 39. rocketmq.config.loginRequired=false
4.打包
在地址框 输入cmd 进入cmd 然后输入
mvn clean package -Dmaven.test.skip=true
5.启动
再次输入cmd 输入以下命令 其中 jar包版本为文件夹中文件名 然后输入 localhost:8080(上文配置的端口号)
java -jar rocketmq-console-ng-1.0.0.jar
面板:
还可以在右上角更换语言