https://rocketmq-1.gitbook.io/rocketmq-connector/rocketmq-connect-1/rocketmq-console/an-zhuang-he-shi-yong
界面 Console下载下载地址:
https://github.com/apache/rocketmq-externals/releases
提示:作者下的包是 zip包 通过IDEA - Maven 编译打包
Console 编译打包将项目导入 IDEA
修改编译配置文件
server.contextPath=
server.port=9999
rocketmq.config.namesrvAddr=127.0.0.1:9876
rocketmq.config.namesrvAddr 地址为RocketMQ namesrvAddr地址,也可在启动时指定
编译时需要注意 test 测试类需要注释掉或删掉,建议注释掉即可
Console打包部署将rocketmq-console-ng-1.0.0.jar 包上传到服务器
运行Console控制台添加可运行权限
chmod +x rocketmq-console-ng-1.0.0.jar
运行:
nohup java -jar rocketmq-console-ng-1.0.0.jar --server.port=9999 --rocketmq.config.namesrvAddr=“192.168.56.101:9876;192.168.56.109:9876” >> con-ng.log 2>&1 &
–server.port=9999 指定运行端口
–rocketmq.config.namesrvAddr=“192.168.56.101:9876;192.168.56.109:9876” 指定RocketMQ namesrv地址
启动日志查看
[root@localhost rocketmq]# tail -f con-ng.log
vim startConsole.sh
nohup java -jar rocketmq-console-ng-1.0.0.jar --server.port=9999 --rocketmq.config.namesrvAddr="192.168.56.101:9876;192.168.56.109:9876" >> con-ng.log 2>&1 &
vim shutdownConsole.sh
ps aux | grep console | grep -v grep | awk '{print $2}'|xargs kill -s 9
添加可执行权限
chmod +x ./*.sh