本文为学习笔记
来自蚂蚁课堂RocketMQ设计原理
链接:http://www.mayikt.com/front/couinfo/245/0
其他相关文章
安装(linux版)
官网下载地址

解压上传至
/usr/local
进入上传文件目录
cd /usr/local/rocketmq-all-4.7.0-source-release/bin
修改runbroker.sh

修改runserver.sh

修改环境变量
#rocketmq环境变量
export ROCKETMQ_HOME=/usr/local/rocketmq-all-4.7.0
export PATH=$PATH:$JAVA_PATH:$MAVEN_HOME/bin:$ROCKETMQ_HOME/bin
启动 NameServer 命令
nohup sh mqnamesrv >/usr/local/rocketmq-all-4.7.0/nohup.out 2>&1 &
打开nohup.out,显示内容
Java HotSpot(TM) 64-Bit Server VM warning: Using the DefNew young collector with the CMS collector is deprecated and will likely be removed in a future release
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: MaxNewSize (131072k) is equal to or greater than the entire heap (131072k). A new max generation size of 131008k will be used.
The Name Server boot success. serializeType=JSON
启动Broker
nohup sh mqbroker -n localhost:9876 >/usr/local/rocketmq-all-4.7.0/nohup.out 2>&1 &
打开nohup.out,显示内容
nohup: 忽略输入
The broker[localhost, 192.168.112.134:10911] boot success. serializeType=JSON and name server is localhost:9876
RocketMQ控制台的使用
- GitHub下载地址
- 超级慢
建议地址
将 rocketmq-console 项目导入 IDEA
修改 application.properties 下的 namesrvAddr 为自己的 IP 地址

如若报错将NameServer防火墙关闭
systemctl disable firewalld
访问地址

网友评论