RabbitMQ安装记录(CentOS)

时间:2022-11-25 06:41:13

参照官方文档:http://www.rabbitmq.com/install-rpm.html

Install Erlang from EPEL

激活EPEL源:

rpm -ivh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm (32位)
rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm (64位)

激活Erlang源:

To install a more recent version of Erlang you need to enable a more up-to-date package repository that is provided by the owner of the Erlang package. To do this, issue the following command as 'root':

wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo

安装Erlang:

yum install erlang

Install the RabbitMQ Server

wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.3/rabbitmq-server-3.1.3-1.noarch.rpm
rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
yum install rabbitmq-server-3.1.3-1.noarch.rpm
 

Run RabbitMQ Server

chkconfig rabbitmq-server on
service rabbitmq-server start

备注:RabbitMQ的默认配置大部分就够用了。

安装插件

rabbitmq-plugins  enable rabbitmq_management
rabbitmq-plugins enable rabbitmq_management_agent

备注:这两个插件为RabbitMQ提供Web控制台。

登录RabbitMQ Web页面

http://<server_ip>:15672
用户名:guest
密码:guest

备注:rabbitmq的后台监听端口为:5672 。