标签:mamicode 图片 顺序 load rocketmq zip 添加 pat hup
本文源码:GitHub·点这里 || GitEE·点这里环境版本
centos7
jdk1.8 已搭建好
rocketmq4.3
网址
https://www.apache.org/dyn/closer.cgi?path=rocketmq/4.3.2/rocketmq-all-4.3.2-bin-release.zip
# We suggest the following mirror site for your download:官方建议下载地址
http://mirrors.tuna.tsinghua.edu.cn/apache/rocketmq/4.3.2/rocketmq-all-4.3.2-bin-release.zip
[root@localhost mysoft]# pwd
/usr/local/mysoft
[root@localhost mysoft]# unzip rocketmq-all-4.3.2-bin-release.zip
[root@localhost mysoft]# mv rocketmq-all-4.3.2-bin-release rocket4.3
[root@localhost mysoft]# rm -f rocketmq-all-4.3.2-bin-release.zip
rocketmq的默认配置极其耗内存,要进行修改。<br/>
1)修改runserver.sh配置<br/>
注释掉原来的,添加新配置
[root@localhost bin]# vim runserver.sh
#JAVA_OPT="${JAVA_OPT} -server -Xms4g -Xmx4g -Xmn2g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m"
JAVA_OPT="${JAVA_OPT} -server -Xms256m -Xmx256m -Xmn512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m"
2)修改runbroker.sh配置<br/>
注释掉原来的,添加新配置
[root@localhost bin]# vim runbroker.sh
#JAVA_OPT="${JAVA_OPT} -server -Xms8g -Xmx8g -Xmn4g"
JAVA_OPT="${JAVA_OPT} -server -Xms256m -Xmx256m -Xmn128m"
3)修改tools.sh配置<br/>
注释掉原来的,添加新配置
[root@localhost bin]# vim tools.sh
#JAVA_OPT="${JAVA_OPT} -server -Xms1g -Xmx1g -Xmn256m -XX:PermSize=128m -XX:MaxPermSize=128m"
JAVA_OPT="${JAVA_OPT} -server -Xms256m -Xmx256m -Xmn256m -XX:PermSize=128m -XX:MaxPermSize=128m"
要按照顺序启动
nohup sh /usr/local/mysoft/rocket4.3/bin/mqnamesrv
# 指定端口
nohup sh /usr/local/mysoft/rocket4.3/bin/mqbroker -n localhost:9876
地址:https://github.com/apache/rocketmq-externals.git
下载完成之后,进入
rocketmq-externals\rocketmq-console\src\main\resources
文件夹,打开
application.properties
修改如下配置:
server.port=8089
rocketmq.config.namesrvAddr=192.168.72.129:9876
进入如下目录,打开命令行
rocketmq-externals\rocketmq-console
执行打包命令
mvn clean package -Dmaven.test.skip=true
编译生成。
rocketmq-console-ng-1.0.0.jar
[root@localhost myjar]# pwd
/usr/local/myjar
[root@localhost myjar]# ll
-rw-r--r--. 1 root root 33231510 May 16 11:11 rocketmq-console-ng-1.0.0.jar
[root@localhost myjar]# java -jar rocketmq-console-ng-1.0.0.jar
浏览器访问
http://192.168.72.129:8089
GitHub·地址
https://github.com/cicadasmile/linux-system-base
GitEE·地址
https://gitee.com/cicadasmile/linux-system-base
Linux系统:centos7下搭建Rocketmq4.3中间件,配置监控台
标签:mamicode 图片 顺序 load rocketmq zip 添加 pat hup
原文地址:https://blog.51cto.com/14439672/2445225