Rocketmq学习笔记 - 1 简易搭建
linux部署RocketMQ
1. 环境变量设置 JAVE_HOME ROCKETMQ_HOME
2. ROCKETMQ 内存设置 runserver.sh runbroker.sh
JAVA_OPT="${JAVA_OPT} -server -Xms256m -Xmx256m -Xmn125m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m"
- broker.conf 配置文件加入公网IP地址与端口9876
namesrvAddr=公网IP:9876
brokerIP1=公网IP - 启动NAMESRV nohup sh bin/mqnamesrv -n 公网IP:9876 &
启动broker nohup sh bin/mqbroker -n 公网IP:9876 -c conf/broker.conf autoCreateTopicEnable=true &