1. 程式人生 > >RabbitMQ 環境搭建

RabbitMQ 環境搭建

png eas oca 端口 3.2 oar sta nag .rpm

安裝基礎環境

yum install net-tools
yum install yum
yum install gcc glibc-devel make ncurses-devel openssl-devel xmlto

安裝 Erlang

wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm
yum install erlang-19.0.4-1.el7.centos.x86_64.rpm

安裝 RabbitMQ

wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.8/rabbitmq-server-3.6.8-1.el6.noarch.rpm
yum install rabbitmq-server-3.6.8-1.el6.noarch.rpm

安裝 socat (如果安裝 RabbitMQ 報錯就安裝,我在安裝的時候沒有安裝也能成功 )

wget https://mirrors.aliyun.com/centos/7.5.1804/os/x86_64/Packages/socat-1.7.3.2-2.el7.x86_64.rpm
yum install 

啟用管理員

vim /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.8/ebin/rabbit.app

技術分享圖片

啟動 RabbitMQ

rabbitmq-server start &

啟動管控臺(用戶名和密碼都是 guest,訪問機器 IP:15672 即可,15672 是默認端口 )

rabbitmq-plugins enable rabbitmq_management

技術分享圖片

技術分享圖片

停止 RabbitMQ

rabbitmqctl stop_app

RabbitMQ 環境搭建