第一步下載erlang環境並安裝: rpm -Uvh https://mirrors.aliyun.com/centos/7.6.1810/extras/x86_64/Packages/epel-release-7-11.noarch.rpm yum install erlang 第二步下載Rabb ...
第一步下載erlang環境並安裝:
rpm -Uvh https://mirrors.aliyun.com/centos/7.6.1810/extras/x86_64/Packages/epel-release-7-11.noarch.rpm
yum install erlang
第二步下載RabbitMQ的rpm包並安裝:
wget http://www.rabbitmq.com/releases/rabbitmq-server/current/rabbitmq-server-3.6.15-1.el7.noarch.rpm
yum install rabbitmq-server-3.6.15-1.el7.noarch.rpm
第四步打開RabbitMQ管理Web:rabbitmq-plugins enable rabbitmq_management
預設3.3.0開始不允許guest賬戶非本地登錄,需要修改以下設置
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.15/ebin/rabbit.app
將:{loopback_users, [<<”guest”>>]},
改為:{loopback_users, []} 然後重啟服務 systemctl restart rabbitmq-server
打開RabbitMQ的埠:
firewall-cmd --zone=public --add-port=5672/tcp --permanent
firewall-cmd --zone=public --add-port=15672/tcp --permanent
firewall-cmd --reload