centos5.8部署rabbitmq

时间 : 14-08-29 栏目 : linux运维 作者 : 老薛 评论 : 0 点击 : 1,067 次

一、硬件环境:

联想RD540

二、软件环境:

Centos 5.8   64位  2.6.18-308.el5

三、安装

3.1 准备工作
wget http://download.slogra.com/epel-release-5-4.noarch.rpm
rpm -ivh epel-release-5-4.noarch.rpm
wget -P /etc/yum.repos.d/ http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo
yum clean all
yum -y install erlang

3.2安装rabbitmq
rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.5/rabbitmq-server-2.8.5-1.noarch.rpm
rpm -ivh rabbitmq-server-2.8.5-1.noarch.rpm

3.3启动rabbitmq并设置开机启动
chkconfig rabbitmq-server on
/sbin/service rabbitmq-server start

3.4检查rabbitmq是否启动
ps -ef  |grep rabbitmq

3.5安装 RabbitMQWeb管理插件

[root@test rabbitmq]# rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
  mochiweb
  webmachine
  rabbitmq_mochiweb
  amqp_client
  rabbitmq_management_agent
  rabbitmq_management
Plugin configuration has changed. Restart RabbitMQ for changes to take effect.
[root@test rabbitmq]# service rabbitmq-server restart
Restarting rabbitmq-server: SUCCESS
rabbitmq-server.
[root@test rabbitmq]# netstat -lnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State
tcp        0      0 0.0.0.0:708                 0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:5672                0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:4369                0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:55672               0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:45049               0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN

打开浏览器登录:http://127.0.0.1:55672也可以,直接跳转到下列web管理

rabbit

rabbit2

 

本文标签

除非注明,文章均为( 老薛 )原创,转载请保留链接: http://www.bdkyr.com/xtyw002/249.html

centos5.8部署rabbitmq:等您坐沙发呢!

发表评论

1 + 7 = ?


博主微信号,很高兴为您提供帮助

随便看看

0