1.安裝erlang
yum install erlang
如報錯No package erlang available,需要安裝EPEL庫
1.安裝wget
yum -y install wget
2.安裝EPEL庫
- 下載
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
- 安裝
rpm -ivh epel-release-6-8.noarch.rpm
2.安裝RabbitMQ rpm包
- 下載
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.0/rabbitmq-server-3.5.0-1.noarch.rpm
- 安裝
rpm -ivh rabbitmq-server-3.5.0-1.noarch.rpm
3.啟動rabbitmq隶校,并驗(yàn)證啟動情況
rabbitmq-server --detached &ps aux |grep rabbitmq
4.以服務(wù)的方式啟動
service rabbitmq-server start
5.檢查端口5672是否打開
/sbin/iptables -I INPUT -p tcp --dport 5672 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart
/etc/init.d/iptables status
6.啟用維護(hù)插件
rabbitmq-plugins enable rabbitmq_management
7.重啟RabbitMQ
service rabbitmq-server restart
8.訪問UI界面
http://your ip:15672 用戶名密碼:guest
無法登陸解決:
vim /etc/rabbitmq/rabbitmq.config
寫入信息漏益,并保存
[{rabbit, [{loopback_users, []}]}].