前言
Dashboard是一个Java web 项目,Maven工程。通过源码编译成jar包后启动即可通过浏览器访问。通过html界面可以查看RockeMQ集群状态、创建/删除Topic、生产/消费等。
安装
echo "从 GitHub 下载源码包" > /dev/null
wget -P ~/soft/rocketmq https://github.com/apache/rocketmq-dashboard/archive/refs/tags/rocketmq-dashboard-1.0.0.tar.gz
echo "解压" > /dev/null
tar -xf ~/soft/rocketmq/rocketmq-dashboard-1.0.0.tar.gz -C ~/soft/rocketmq
echo "编译" > /dev/null
mvn clean package -Dmaven.test.skip=true -f ~/soft/rocketmq/rocketmq-dashboard-rocketmq-dashboard-1.0.0
echo "创建指定目录" > /dev/null
mkdir -p /opt/soft/rocketmq-dashboard
echo "拷贝jar到/opt/soft/rocketmq-dashboard" > /dev/null
cp -r ~/soft/rocketmq/rocketmq-dashboard-rocketmq-dashboard-1.0.0/target/rocketmq-dashboard-1.0.0.jar /opt/soft/rocketmq-dashboard
启动/停止
# 前台启动
java -jar /opt/soft/rocketmq-dashboard/rocketmq-dashboard-1.0.0.jar
# 后台启动
nohup java -jar /opt/soft/rocketmq-dashboard/rocketmq-dashboard-1.0.0.jar &
# 查询进程
jps | grep rocketmq-dashboard-1.0.0.jar
# 根据进程Id(pid)杀死进程
kill -9 pid
访问控制台
安装完成后通过 8080 端口访问,如 http://localhost:8080/。
填好 Name Server 地址(如 localhost:9876)后点 update 就连上 RocketMQ 了。
参考链接
GitHub - rocketmq-dashboard 中文文档
标签:RocketMQ,opt,1.0,jar,dashboard,Linux,soft,rocketmq,Dashboard From: https://www.cnblogs.com/shuiyao3/p/17289807.html