RocketMQ启动

素颜马尾好姑娘i 2022-01-26 15:25 305阅读 0赞

下载RocketMQ解压启动

  1. > unzip rocketmq-all-4.4.0-source-release.zip
  2. > cd rocketmq-all-4.4.0/
  3. > mvn -Prelease-all -DskipTests clean install -U
  4. > cd distribution/target/apache-rocketmq

Start Name Server

  1. > nohup sh bin/mqnamesrv &
  2. > tail -f ~/logs/rocketmqlogs/namesrv.log
  3. The Name Server boot success...

Start Broker

  1. > nohup sh bin/mqbroker -n localhost:9876 &
  2. > tail -f ~/logs/rocketmqlogs/broker.log
  3. The broker[%s, 172.30.30.233:10911] boot success...

如果需要自动创建主题:

  1. > nohup sh bin/mqbroker -n localhost:9876 autoCreateTopicEnable=true &

Shutdown Servers

  1. > sh bin/mqshutdown broker
  2. The mqbroker(36695) is running...
  3. Send shutdown request to mqbroker(36695) OK
  4. > sh bin/mqshutdown namesrv
  5. The mqnamesrv(36664) is running...
  6. Send shutdown request to mqnamesrv(36664) OK

发表评论

表情:
评论列表 (有 0 条评论,305人围观)

还没有评论,来说两句吧...

相关阅读