一、环境准备(all)
1.下载rabbitmq、erlang包
查看两者对应的版本号
RabbitMQ Erlang Version Requirements — RabbitMQ
erlang:otp_src_24.2.tar.gz
rabbitmq:rabbitmq-server-generic-unix-3.10.5.tar.xz
IP:192.168.255.150、192.168.255.151、192.168.255.152
Hostname:tya、tyb、tyc
2.安装预环境
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel socat epel-release build-essential openssl unixODBC unixODBC-devel
3.修改主机名(3台主机名不同,可以不修改)
hostnamectl set-hostname rabbit-node1
4.修改hosts文件
vi /etc/hosts 添加
192.168.255.150 rabbit-node1
192.168.255.151 rabbit-node2
192.168.255.152 rabbit-node3
5.重启网络
service network restart
systemctl start net