Centos6安装rabbitmq

1. 安装erlang

yum -y install http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
yum -y install erlang

2. 安装rabbitmq

配置yum源

vim /etc/yum.repo/rabbitmq.repo

[bintray-rabbitmq-server]
name=bintray-rabbitmq-rpm
baseurl=http://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.7.x/el/6/
gpgcheck=0
repo_gpgcheck=0
enabled=1

**配置epel源

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

安装rabbitmq-server

rpm --import https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
yum -y install rabbitmq-server

配置rabbitmq

service rabbitmq-server start
rabbitmq-plugins enable rabbitmq_management  配置web插件
rabbitmqctl add_user guest guest 新增用户
rabbitmqctl set_user_tags guest administrator 设置为管理员
rabbitmqctl set_permissions -p "/" guest ".*" ".*" ".*" 设置权限
service rabbitmq-server restart

访问web页面
http://$rabbitmq-server:15672

踩坑

启动失败,noproc
erlang版本不对!!!

启动失败,{"init terminating in do_boot",{error,{"no such file or directory","asn1.app"}}}
经过调查发现是因为没有将之前版本的erlang卸载干净的原因。

在通过yum卸载完erlang和rabbitmq-server之后,应手动删掉以下目录:
快速卸载

yum remove -y  rabbitmq-server erlang erlang-\* 
rm -rf /usr/lib64/erlang
rm -rf /var/lib/rabbitmq

之后才能重新安装。

你可能感兴趣的:(Centos6安装rabbitmq)