1.修改hosts文件 vim /etc/hosts
192.168.119.138 rocketmq-nameserver1
192.168.119.138 rocketmq-master1
192.168.119.139 rocketmq-nameserver2
192.168.119.139 rocketmq-master2
然后重启网络
service network restart
2.解压rocketmq到指定的文件夹
tar -zxvf alibaba-rocketmq-3.2.6.tar.gz -C /usr/local
修改文件名为rocketmq
mv alibaba-rocketmq rocketmq
创建软连接(可有可无)
ln -s rocketmq rocketmq
3.创建存储的路径
mkdir /usr/local/rocketmq/store
mkdir /usr/local/rocketmq/store/commitlog
mkdir /usr/local