1、rocketmq的启动
进入rocketMQ解压目录下的bin文件夹
启动namesrv服务:nohup sh bin/mqnamesrv &
日志目录:{rocketMQ解压目录}/logs/rocketmqlogs/namesrv.log
进入rocketMQ解压目录下的bin文件夹
启动namesrv服务:nohup sh bin/mqnamesrv &
日志目录:{rocketMQ解压目录}/logs/rocketmqlogs/namesrv.log
启动broker服务:nohup sh bin/mqbroker &
日志目录:{rocketMQ解压目录}/logs/rocketmqlogs/broker.log
以上的启动日志可以在启动目录下的nohub.out中看到
日志目录:{rocketMQ解压目录}/logs/rocketmqlogs/broker.log
以上的启动日志可以在启动目录下的nohub.out中看到
2、rocketmq服务关闭
关闭namesrv服务:sh bin/mqshutdown namesrv
关闭broker服务 :sh bin/mqshutdown broker
sh bin/mqnamesrv &
sh bin/mqbroker -n 10.10.46.32:9876 autoCreateTopicEnable=true -c /opt/rocketmq-all-4.4.0-bin-release/conf/broker.conf &
---------------------
sh bin/mqbroker -n 10.10.46.32:9876 autoCreateTopicEnable=true -c /opt/rocketmq-all-4.4.0-bin-release/conf/broker.conf &
---------------------
rocketMq服务的安装、启动与关闭
rocketMq已经被阿里巴巴捐赠给了apache,apache版本从4.0.0开始。以下我们依rocketmq4.1.0为例简单讲解!
1、下载并安装
maven3.3.0 jdk1.8 rocketmq4.1.0
rocketmq4.1.0 下载地址:http://apache.fayea.com/incubator/rocketmq/4.1.0-incubating/rocketmq-all-4.1.0-incubating-bin-release.zip
rocketmq源码地址:https://github.com/apache/incubator-rocketmq
maven3.3.0 jdk1.8 rocketmq4.1.0
rocketmq4.1.0 下载地址:http://apache.fayea.com/incubator/rocketmq/4.1.0-incubating/rocketmq-all-4.1.0-incubating-bin-release.zip
rocketmq源码地址:https://github.com/apache/incubator-rocketmq
如果下载的是源码,则需要在根目录执行 mvn clean package -Dmaven.test.skip=true或mvn -Preplease-all -DskipTests clean install -U
并在distribution/target/apache-rocketmq 目录下找到打好的包.解压至指定目录。
并在distribution/target/apache-rocketmq 目录下找到打好的包.解压至指定目录。
2、rocketmq的启动
启动namesrv服务:nohup sh bin/mqnamesrv & 查看日志:tailf ~/logs/rocketmqlogs/namesrv.log
启动broker服务:nohup sh bin/mqbroker & 查看日志:tailf ~/logs/rocketmqlogs/broker.log
启动namesrv服务:nohup sh bin/mqnamesrv & 查看日志:tailf ~/logs/rocketmqlogs/namesrv.log
启动broker服务:nohup sh bin/mqbroker & 查看日志:tailf ~/logs/rocketmqlogs/broker.log
3、rocketmq服务关闭
关闭namesrv服务:sh bin/mqshutdown namesrv
关闭broker服务 :sh bin/mqshutdown broker
---------------------
!
关闭namesrv服务:sh bin/mqshutdown namesrv
关闭broker服务 :sh bin/mqshutdown broker
---------------------
!