一、安装依赖包

yum install  build-essential openssl openssl-devel unixODBC unixODBC-devel  make gcc gcc-c++ kernel-devel m4 ncurses-devel tk tc xz

二、下载erlang

wget https://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_21.0.5-1~centos~6_amd64.rpm

三、下载rabbitmq

wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.14/rabbitmq-server-3.7.14-1.el6.noarch.rpm

四、安装erlang

rpm -ivh esl-erlang_21.0.5-1~centos~6_amd64.rpm

报错

warning: esl-erlang_21.0.5-1~centos~6_amd64.rpm: Header V4 RSA/SHA1 Signature, key ID a14f4fca: NOKEY
error: Failed dependencies:
libwx_baseu-2.8.so.0()(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_baseu-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_baseu_xml-2.8.so.0()(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_adv-2.8.so.0()(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_adv-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_aui-2.8.so.0()(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_aui-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_aui-2.8.so.0(WXU_2.8.5)(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_core-2.8.so.0()(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_core-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_core-2.8.so.0(WXU_2.8.10)(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_gl-2.8.so.0()(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_gl-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_html-2.8.so.0()(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_html-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_stc-2.8.so.0()(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_stc-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_xrc-2.8.so.0()(64bit) is needed by esl-erlang-21.0.5-1.x86_64
libwx_gtk2u_xrc-2.8.so.0(WXU_2.8)(64bit) is needed by esl-erlang-21.0.5-1.x86_64

解决缺少的依赖包

yum install unixODBC  unixODBC-devel wxBase  wxGTK SDL wxGTK-gl

再安装erlang

rpm -ivh esl-erlang_21.0.5-1~centos~6_amd64.rpm
warning: esl-erlang_21.0.5-1~centos~6_amd64.rpm: Header V4 RSA/SHA1 Signature, key ID a14f4fca: NOKEY
Preparing... ########################################### [100%]
1:esl-erlang ########################################### [100%]
Erlang OTP 21.0.5 installed

安装成功

五、安装rabbitmq

rpm -ivh rabbitmq-server-3.7.14-1.el6.noarch.rpm
warning: rabbitmq-server-3.7.14-1.el6.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 6026dfca: NOKEY
error: Failed dependencies:
erlang >= 20.3 is needed by rabbitmq-server-3.7.14-1.el6.noarch
socat is needed by rabbitmq-server-3.7.14-1.el6.noarch

报错:erlang >= 20.3 需要安装erlang兼容包

    socat 安装socat包
wget https://raw.githubusercontent.com/jasonmcintosh/esl-erlang-compat/master/rpmbuild/RPMS/noarch/esl-erlang-compat-R14B-1.el6.noarch.rpm
wget http://repo.iotti.biz/CentOS/7/x86_64/socat-1.7.3.2-5.el7.lux.x86_64.rpm
rpm -ivh esl-erlang-compat-R14B-1.el6.noarch.rpm
Preparing... ########################################### [100%]
1:esl-erlang-compat ########################################### [100%]
 rpm -ivh socat-1.7.3.2-5.el7.lux.x86_64.rpm
warning: socat-1.7.3.2-5.el7.lux.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 53e4e7a9: NOKEY
Preparing... ########################################### [100%]
1:socat ########################################### [100%]

再安装rabbitmq

rpm -ivh rabbitmq-server-3.7.14-1.el6.noarch.rpm
warning: rabbitmq-server-3.7.14-1.el6.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 6026dfca: NOKEY
Preparing... ########################################### [100%]
1:rabbitmq-server ########################################### [100%]

六、启动rabbitmq

rabbitmq-server start &
[1] 27890
[root@zabbix_server src]#
## ##
## ## RabbitMQ 3.7.14. Copyright (C) 2007-2019 Pivotal Software, Inc.
########## Licensed under the MPL. See https://www.rabbitmq.com/
###### ##
########## Logs: /var/log/rabbitmq/rabbit@zabbix_server.log
/var/log/rabbitmq/rabbit@zabbix_server_upgrade.log Starting broker...
completed with 3 plugins.

七、查看5672端口

netstat -tunlp |grep 5672
tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN 28140/beam.smp
tcp 0 0 0.0.0.0:15672 0.0.0.0:* LISTEN 28140/beam.smp
tcp 0 0 :::5672 :::* LISTEN 28140/beam.sm

八、安装管控台插件

rabbitmq-plugins enable rabbitmq_management
Enabling plugins on node rabbit@zabbix_server:
rabbitmq_management
The following plugins have been configured:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_web_dispatch
Applying plugin configuration to rabbit@zabbix_server...
Plugin configuration unchanged.

九、打开管控台

十、增加一个管理员账号

[root@zabbix_server src]# rabbitmqctl add_user admin Zaq1xsw
Adding user "admin" ...
[root@zabbix_server src]# rabbitmqctl set_user_tags admin administrator
Setting tags for user "admin" to [administrator] ...

[root@zabbix_server src]# rabbitmqctl set_permissions -p / admin '.*' '.*' '.*'
Setting permissions for user "admin" in vhost "/" ...

 

十一、登录管控台

												

centos6安装rabbitmq的更多相关文章

  1. Centos6.5 安装 RabbitMQ 3.7.11

    RabbitMQ是一个开源的AMQP实现,服务器端用Erlang语言编写,支持多种客户端,如:Python.Ruby..NET.Java.JMS.C.PHP.ActionScript.XMPP.STO ...

  2. CentOS6.8安装RabbitMQ

    1.安装erlang 安装依赖包: yum install xmlto gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC ...

  3. yum 快速安装 Rabbitmq for CentOS6

    1.安装CENTOS6的系统. 2.配置源 ,说明:https://github.com/rabbitmq/erlang-rpm To use Erlang 20.x on CentOS 6: # I ...

  4. CentOS6.9下安装rabbitmq消息队列

    安装如下步骤: 首先安装erlang yum install erlang 安装rabbitmq rpm包 wget http://www.rabbitmq.com/releases/rabbitmq ...

  5. CentOS6.x安装RabbitMQ

    一.安装依赖文件 yum install build-essential openssl openssl-devel unixODBC unixODBC-devel make gcc gcc-c++ ...

  6. Linux(centOS6.5)安装RabbitMQ

    第一.下载erlang和rabbitmq-server的rpm: wget  http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.c ...

  7. centos6中安装RabbitMQ

    一.安装环境步骤需知 第一步 安装erlang环境 第二步 安装RabbitMQ 二.安装erlang环境 1)安装编译环境,和基础依赖包 yum -y install make gcc gcc-c+ ...

  8. 在Centos6上安装RabbitMQ的过程(有点坑)

    1.安装依赖环境 yum install build-essential openssl openssl-devel unixODBC unixODBC-devel make gcc gcc-c++ ...

  9. yum 安装rabbitMQ

    环境:linux centos6.5 1.安装erlang 下载rpm仓库:wget http://packages.erlang-solutions.com/erlang-solutions-1.0 ...

随机推荐

  1. Python之小练习

    1.1 2 3 4 5 6 7 8能组成多少个不同的两位数? count = 0for i in range(1,9): for V in range(1,9): if i != V: count+= ...

  2. "Error: [$compile:multidir] Multiple directives

    angularjs 中控制台报"Error: [$compile:multidir] Multiple directives错误 可以在当前html元素之上增加父元素,在父元素中加入第二个指 ...

  3. 文献--A Survey on Server-side Approaches to Securing Web Applications

    Q:1.如何定义XSS攻击? 2.taint-based 啥意思? 3. second-order vulnerabilities 啥意思?

  4. 加载XML文件到系统中

    using System;using System.Data;using System.IO;using System.Xml;using System.Collections.Generic; na ...

  5. BSS, DATA, TEXT, HEAP, STACK

    BSS, block start segment, static memory, to store the global data which are not initialized. DATA, d ...

  6. PPTV(pplive)_forap_1084_9993.exe 木马清除经历

    ## 流氓行经 这几天电脑上突然自动安装pptv,金山毒霸清除了也不管用, 卸载了pptv过一会又自动安装上了,太嚣张了哈. ## 监控进程跟目录变化 接下来使用 ProcessMonitor 监控进 ...

  7. HAproxy增加日志记录功能和自定义日志输出内容、格式

    http://blog.51cto.com/eric1/1854574 一.增加haproxy日志记录功能   1.1 由于数据分析的需要,我们必须打开haproxy日志,记录相关信息. 在配置前,我 ...

  8. 第一章 C#入门 (Windows窗体应用程序)(一)

    我的第一个窗体应用程序(一) [案例说明]  在文本框中显示一行文字“Hello C#!”,单击[显示]按钮后在文本框中显示文字:单击[清除]按钮后清除文本框中的内容. [案例实现步骤] 1.新建项目 ...

  9. 廖雪峰Java6 IO编程-2input和output-7序列化

    1.序列化 序列化是指把一个Java对象变成二进制内容byte[] 序列化后可以把byte[]保存到文件中 序列化后可以把byte[]通过网络传输 一个Java对象要能序列化,必须实现Serializ ...

  10. storj白皮书v3最全面解读,Docker创始人的加入能否扳倒AWS S3

    Storj新发了白皮书v3,地址是:https://storj.io/storjv3.pdf. 这次白皮书一共有90页,看完还真要费不少时间.如果你没有时间看,可以看一下我这篇快速技术解读. 上次St ...