Rocketmq集群搭建
程序员文章站
2022-07-15 07:53:50
...
Host添加信息
vim /etc/hosts
配置如下:
#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
重启网卡
systemctl restart network
环境变量配置
vim /etc/profile
在profile文件的末尾加上如下命令
#set rocketmq
ROCKEMQ_HOME =/opt/rocketmq-all-4.3.0-bin-release
path=$PATH:$ROCKEMQ_HOME/bin
export ROCKEMQ_HOME PATH
保存退出,并使得配置生效
source /etc/profile