RocketMQ4.x installation and deployment

1, download the installation package: https:? //Www.apache.org/dyn/closer.cgi path = rocketmq / 4.2.0 / rocketmq-all-4.2.0-bin-release.zip

2, unzip the filetar -zxvf rocketmq-all-4.2.0-bin-release.zip

3, move files and change the namemv rocketmq-all-4.2.0-bin-release/ /usr/local/rocketmq/rocketmq-all-4.2.0-bin-release

4, go to the bin directory

Start namesrv

nohup sh mqnamesrv & 

 

View Log

 tail -f nohup.out 

 End:. The Name Server boot success serializeType = JSON representation successful start

 

Start broker

nohup sh mqbroker -n 127.0.0.1:9876 &

Close the command nameserver broker execution
sh mqshutdown namesrv
sh mqshutdown broker

Guess you like

Origin www.cnblogs.com/wxk515/p/12158733.html