-
上传安装包
-
解压RocketMQ压缩包
-
在安装目录下创建存储路径
1
mkdir -p data/store/{commitlog,consumequeue,index}
-
进入conf目录下修改日志配置文件
1 2
mkdir -p /home/weblogic/apache-rocketmq/logs sed -i 's#${user.home}#/home/apache-rocketmq#g' *.xml
-
修改RocketMQ的配置文件,以下为主要参数
1 2 3 4
# nameServer地址,分号分割 namesrvAddr = 9.23.28.145:9876 # Broker 对外服务的监听端口 listenPort = 10911
-
修改启动脚本,指定JDK
-
启动mqnamesrv
1
nohup sh mqnamesrv &
-
启动Broker
1
nohup sh mqbroker -c /home/weblogic/apache-rocketmq/conf/broker.conf >/dev/null 2>&1 &
自动创建Topic
1
nohup sh mqbroker -c /home/weblogic/apache-rocketmq/conf/broker.conf autoCreateTopicEnable=true >/dev/null 2>&1 &
-
安装RocketMQ-Console
修改配置文件rocketmq-console的配置
1 2
server.port = 8099 rocketmq.config.namesrvAddr = 9.23.28.145:9876
-
启动控制台
1
nohup /home/weblogic/apache-rocketmq/jdk/jdk1.8/bin/java -jar rocketmq-console-ng-1.0.0.jar &
-
需要开放的端口
8080、9876、10911
-
访问控制台
http://localhost:8099/rocketmq-console
-
物理部署
Post
Cancel
RocketMQ实际部署
This post is licensed under
CC BY 4.0
by the author.