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/
RabbitMQ(3)Install on CentOS
猜你喜欢
转载自sillycat.iteye.com/blog/1575002
今日推荐
周排行