1、下载
下载的本地压缩包上传到centos中
Administrator@CHINAMI-NUB1805 MINGW64 ~/Downloads
$ scp rocketmq-dashboard-1.0.0-source-release.zip root@192.168.189.131:/usr/app/dashboard
root@192.168.189.131's password:
rocketmq-dashboard-1.0.0-source-release.zip 100% 3388KB 43.4MB/s 00:00
2、解压
[root@centos7 dashboard]# unzip rocketmq-dashboard-1.0.0-source-release.zip
3、使用maven编译dashboard
#进入源码目录使用mvn打包
#roketMQ5.1版本对应dashboard的一些类没有升级,最后编译会异常(本篇使用maven3.9版本)
#进入目标目录
[root@centos7 /]# cd /usr/app/dashboard/rocketmq-dashboard-1.0.0
#编译
[root@centos7 rocketmq-dashboard-1.0.0]# mvn clean package -Dmaven.test.skip=true
#如果打包失败,可以清楚编译结果,重新打包,编译成功则无需使用
[root@centos7 rocketmq-dashboard-1.0.0]# mvn clean install -U -Damven.test.skip=true
4、运行
运行dashboard需要先运行rocketMQ的nameserver和brokerserver
rocketmq安装看:centos7.9安装rocketmq5.1.3&服务、集群搭建_渣猫略懂的博客-CSDN博客
[root@centos7 bin]# cd /usr/app/rocketmq-dashboard/rocketmq-dashboard-1.0.0/target/
#运行
[root@centos7 target]# nohup java -jar rocketmq-dashboard-1.0.0.jar &
http://公网ip:端口号/#/consumer
http://192.168.189.000:8080/#/consumer