安装 rabbitmq
1.删除erlang
yum -y remove erlang-*
1.安装erlang
sudo yum install epel-release
sudo yum update
wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
sudo rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
sudo yum install erlang
2.安装rabbtimq 直接安装新版本
https://www.rabbitmq.com/install-rpm.html 参考安装手册
rpm -Uvh https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.9/rabbitmq-server-3.7.9-1.el7.noarch.rpm
systemctl start rabbitmq-server
systemctl stop rabbitmq-server
systemctl status rabbitmq-server
设置开机启动
systemctl enable rabbitmq-server
3.rabbitmq 配置文件
touch /etc/rabbitmq/rabbitmq.conf
rabbitmq-plugins enable rabbitmq_management
配置用户
rabbitmqctl add_user admin admin
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin “." ".” “.*”
ls /var/log/rabbitmq
防火墙
firewall-cmd --zone=public --add-port=4369/tcp --permanent
firewall-cmd --zone=public --add-port=5672/tcp --permanent
firewall-cmd --zone=public --add-port=25672/tcp --permanent
firewall-cmd --zone=public --add-port=15672/tcp --permanent
firewall-cmd --zone=public --add-port=5671/tcp --permanent
firewall-cmd --reload