服务器安装rocketMQ.
1.下载jar, Apache Download Mirrors
解压到usr/local/rocketmq下,unzip rocketmq-all-4.7.1-bin-release.zip
#进入目录 cd /usr/rocketMQ/rocketmq-all-4.7.1-bin-release/bin #使用vi 编辑文件runbroker.sh,修改如下代码
.
3.需要修改linux本地域名
#打开host配置
vi /etc/hosts
#添加如下代码
启动nameserver服务,
nohup sh bin/mqnamesrv >/dev/null 2>&1 & 启动服务
查看启动日志,tail -f ~/logs/rocketmqlogs/namesrv.log
启动broker
修改conf下的配置文件broker.conf,并修改启动命令
vim conf/broker.conf
#配置自己Linux的ip
namesrvAddr=47.100.222.253:9876
brokerIP1=47.100.222.253
nohup sh bin/mqbroker -c conf/broker.conf & 后台启动
tail -f ~/logs/rocketmqlogs/broker.log
部署RocketMQ可视控制台Dashboard
下载资源包:
wget -P ~/soft/rocketmq https://github.com/apache/rocketmq-dashboard/archive/refs/tags/rocketmq-dashboard-1.0.0.tar.gz
解压:tar -xf ~/soft/rocketmq/rocketmq-dashboard-1.0.0.tar.gz
maven编译资源包mvn clean package -Dmaven.test.skip=true -f rocketmq-dashboard-rocketmq-dashboard-1.0.0
# 后台启动nohup java -jar rocketmq-dashboard-1.0.0.jar &
# 查询进程jps | grep rocketmq-dashboard-1.0.0.jar
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)