RabbitMQ(3)Install on CentOS

本文详细介绍了如何在CentOS上安装Erlang和RabbitMQ的过程。首先通过源码安装Erlang,并解决安装过程中遇到的编译器缺失等问题。然后下载并安装RabbitMQ服务器,解决启动时出现的各种警告信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

RabbitMQ(3)Install on CentOS

1. Install erlang
>sudo wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo
>sudo yum update
>sudo yum install erlang

The same error message with redhat.
Loading mirror speeds from cached hostfile
http://repos.fedorapeople.org/repos/peter/erlang/epel-6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Setting up Install Process
No package erlang available.

After my testing, actually, the version of yum 3.2.19 is ok. But my yum version on centos is 3.2.29.

2. Follow redhat readme
http://sillycat.iteye.com/blog/1565771

3. Install erlang from source
>wget http://www.erlang.org/download/otp_src_R15B01.tar.gz
>tar zxvf otp_src_R15B01.tar.gz
>cd otp_src_R15B01
>export LANG=C
>./configure --prefix=/opt/tool/erlang

error message:
configure: error: no acceptable C compiler found in $PATH
solution:
>sudo yum install gcc
>gcc --version
gcc (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3)
Copyright (C) 2010 Free Software Foundation, Inc.

go on with the install command

>make
>sudo make install
>cd /opt/tool/erlang/bin
>./erl

And I will link the erl file to /usr/bin
>sudo ln -s /opt/tool/erlang/bin/erl /usr/bin/erl

4. Install rabbitmq
>wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.2/rabbitmq-server-generic-unix-2.8.2.tar.gz
>tar zxvf rabbitmq-server-generic-unix-2.8.2.tar.gz
>sudo mv rabbitmq_server-2.8.2 /opt/tool/rabbitmq_server2.8.2

start the server
>cd /opt/tools/rabbitmq_server2.8.2
>sudo sbin/rabbitmq-server

error message:
********************************************************************************
*WARNING* Undefined function crypto:des3_cbc_decrypt/5
*WARNING* Undefined function crypto:start/0
*WARNING* Undefined function ssl:close/1
*WARNING* Undefined function ssl:connection_info/1
*WARNING* Undefined function ssl:controlling_process/2
*WARNING* Undefined function ssl:getopts/2
*WARNING* Undefined function ssl:peercert/1
*WARNING* Undefined function ssl:peername/1
*WARNING* Undefined function ssl:recv/3
*WARNING* Undefined function ssl:send/2
*WARNING* Undefined function ssl:setopts/2
*WARNING* Undefined function ssl:sockname/1
*WARNING* Undefined function ssl:ssl_accept/3
********************************************************************************

0 plugins activated:

ERROR: epmd error for host "vip11009-403": address (unable to establish tcp connection)

solution:
Install ssl with erlang to remove the warning.

>sudo vi /etc/hosts
127.0.0.1 hostsname

check the status and stop the server
>sudo sbin/rabbitmqctl status
>sudo sbin/rabbitmqctl stop

references:
http://www.rabbitmq.com/install-rpm.html
http://sillycat.iteye.com/blog/1565771

http://codingiscoding.wordpress.com/2011/04/17/rabbitmq-on-os-x/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值