1、安装erlang环境
wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm
rpm -ivh erlang-19.0.4-1.el7.centos.x86_64.rpm
2、安装rabbitmq
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm
yum install rabbitmq-server-3.6.6-1.el7.noarch.rpm
3、启动rabbitmq服务,并查看运行状态
service rabbitmq-server start
service rabbitmq-server status
4、开启防火墙15672端口
firewall-cmd --zone=public --add-port=15672/tcp --permanent
firewall-cmd --reload
5、修改rabbitmq.conf,使外部可以访问
cp /usr/share/doc/rabbitmq-server-3.6.6/rabbitmq.config.example /etc/rabbitmq/rabbitmq.config
进入rabbit文件夹下:cd /etc/rabbitmq
修改rabbitmq.config文件,使外部可以访问;vim rabbitmq.config
service rabbitmq-server restart
注:后期部分图片资源来自https://blog.csdn.net/zhaogangyyxf/article/details/79614464