Adding Host Information
vim /etc/hosts
Configuration is as follows:
#nameserver
192.168.1.222 rocketmq-nameserver1
192.168.1.223 rocketmq-nameserver2
#broker
192.168.1.222 rocketmq-master1
192.168.1.222 rocketmq-slave2
192.168.1.223 rocketmq-master2
192.168.1.223 rocketmq-slave1
Restart card
systemctl restart network
Environment variable configuration
vim /etc/profile
At the end profile file with the following command
ROCKEMQ_HOME=/opt/rocketmq-all-4.3.0-bin-release
path=$PATH:$ROCKEMQ_HOME/bin
export ROCKEMQ_HOME PATH
Save and exit, and makes the configuration take effect
source /etc/profile
Create a message store path
mkdir /usr/local/rocketmq/store
mkdir /usr/local/rocketmq/store/commitlog
mkdir /usr/local/rocketmq/store/consumequeue
mkdir /usr/local/rocketmq/store/index