1. Download the file rocketmq-all-4.4.0-bin-release.zip
official website address http://rocketmq.apache.org/
2, New Folder
mdkir -p /data/install_package
3, with the tool to copy files to / data / install_package directory
4, enter / data / install_package decompression
unzip rocketmq-all-4.4.0-source-release.zip
4, moves to the next file / data directory rename rocketmq
mv rocketmq-all-4.4.0-source-release /data/rocketmq
5, enter rocketmq folder
cd / data / rocketmq
6, modify the configuration parameters, a total of three places modified
runserver.sh 6.1 modify the bin / directory and runbroker.sh
modify parameters jvm
-Xms256m -Xmx256m -Xmn128m
Broker.conf under 6.2 modify conf / directory
192.168.25.110 for my internal network IP,
For more detailed configuration parameters your own search
7, edit the startup script
vim start.sh
nohup sh bin/mqnamesrv &
sleep 3
nohup sh bin/mqbroker -n 192.168.25.110:9876 -c /data/rocketmq/conf/broker.conf &
sleep 1
tail -f ~/logs/rocketmqlogs/broker.log
When the meaning of the above command, start namesrv, start the broker and view the log
To authorize the script start.sh
chmod +x start.sh
8, stop the script editor
vim stop.sh
sh bin/mqshutdown broker
sleep 3
sh bin/mqshutdown namesrv
Authorization to stop script
chmod +x stop.sh
9, start mq
sh start.sh
In general, the following information that is normal
10, stop mq
sh stop.sh