下载介质
wget https://mirrors.tuna.tsinghua.edu.cn/apache/rocketmq/4.8.0/rocketmq-all-4.8.0-bin-release.zip
修改内存
runserver.sh
runbroker.sh
后台启动
nohup sh bin/mqnamesrv &
修改配置文件
brokerIP1=172.17.104.186
启动broker
nohup sh bin/mqbroker -n localhost:9876 -c /data/rocketmq/r/rocketmq-all-4.8.0-bin-release/conf/broker.conf &
检查日志
tail -f ~/logs/rocketmqlogs/namesrv.log
tail -f ~/logs/rocketmqlogs/broker.log
测试rocketmq消费问题
export NAMESRV_ADDR=172.17.104.186:9876
sh bin/tools.sh org.apache.rocketmq.example.quickstart.Producer
sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer
安装WEB监控
1.安装WEB
1. apache-maven-3.6.1-bin.tar.gz
2. 文件到/usr/loacl/目录
cd /usr/local/
tar zxvf apache-maven-3.6.1-bin.tar.gz
3. 软连接
ln -s /usr/local/apache-maven-3.6.1/bin/mvn /usr/local/bin/
4. 令 mvn -v 查看maven版本
2、安装rocket console
get https://github.com/apache/rocketmq-externals/archive/refs/heads/master.zip
/data/rocketmq/r/rocketmq-externals-master/rocketmq-console
[root@zbomc2 rocketmq-console]# set -o vi
[root@zbomc2 rocketmq-console]# mvn clean package -Dmaven.test.skip=true
[root@zbomc2 rocketmq-console]# cd target/
[root@zbomc2 target]# ls
checkstyle-cachefile checkstyle-result.xml generated-sources maven-shared-archive-resources rocketmq-console-ng-2.0.0.jar
checkstyle-checker.xml classes maven-archiver maven-status rocketmq-console-ng-2.0.0.jar.original
[root@zbomc2 target]# export NAMESRV_ADDR=172.17.104.186:9876
[root@zbomc2 target]# java -jar rocketmq-console-ng-2.0.0.jar
启动web成功
文档更新时间: 2021-04-09 22:59 作者:阿力