注意: yum上只能安装老版本的erlang
和rabitmq server
0. 安装yum (如果需要)
rpm -aq|grep yum|xargs rpm -e --nodeps
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-69.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
rpm -ivh yum-3.2.29-69.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
1.添加 RHEL EPEL Repo 源
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -ivh remi-release-6*.rpm epel-release-6*.rpm
# 验证安装结果
ls -l /etc/yum.repos.d/epel* /etc/yum.repos.d/remi*
# 修改 [remi] 配置 enabled=0 ---> enable=1
vi /etc/yum.repos.d/remi.repo
what's EPEL? http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/
2. 安装erlang
yum install -y erlang
3. 安装rabbitmq
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.4.2/rabbitmq-server-3.4.2-1.noarch.rpm
rpm -ivh rabbitmq-server-3.4.2-1.noarch.rpm
4. 启用manage-console
#重启
service rabbitmq-server restart
rabbitmq-plugins enable rabbitmq_management
5. guest用户远程访问
vi /etc/rabbitmq/rabbitmq.config
, 文件完整内容如下(注意后面的半角句号): 添加完成之后,重启
[{rabbit, [{loopback_users, []}]}].