centos下yum安装RabbitMQ
今天在公司给了一台256M内存的vps让我安装rabbitmq和php-rabbitmq,当我使用编译安装rabbitmq的时候,vps居然卡在make那一直无法编译下去,让人很烦躁,公司又催着要,没办法之下,只好yum安装了.
系统:centos 5.5
需要的软件:epel-release-5-4.noarch.rpm
1.安装前准备
wget http://download.slogra.com/epel-release-5-4.noarch.rpm
rpm -ivh 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
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.启动rabbitmq并设置开机启动
chkconfig rabbitmq-server on
/sbin/service rabbitmq-server start
4.检查rabbitmq是否启动
ps aux|grep rabbitmq
好了,如果要安装php-rabbitmq的话,请去看我这篇文章centos下让php支持RabbitMQ.
评论: