一、安装依赖包

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. 深入理解使用synchronized同步方法和同步代码块的区别

    一.代码块和方法之间的区别 首先需要知道代码块和方法有什么区别: 构造器和方法块,构造器可以重载也就是说明在创建对象时可以按照不同的构造器来创建,那么构造器是属于对象,而代码块呢他是给所有的对象初始化 ...

  2. python 4

    一.列表相关操作 l = ['布偶猫', '小断腿', '大白'] # . append l.append('哎呀') print(l) # . insert l.insert(, '小猪佩琪') p ...

  3. Combining Lexical and Grammatical Features to Improve Readability Measures for First and Second Language Texts.-paper

    http://www.aclweb.org/anthology/N07-1058 Volume:Human Language Technologies 2007: The Conference of ...

  4. Linux搭建bugfree

    1.xampp安装包地址: 链接:https://pan.baidu.com/s/1Th2QvF77jvIGzMROoF2rbg 密码:yoar 2.因为我用的是xshell5连接Linux服务器,直 ...

  5. 原生JS怎样给div添加链接

    html: <div href="http://www.atigege.com" target="_blank">个人网站</div> ...

  6. python3 访问百度返回压缩格式

    import urllib, urllib.request, urllib.parse import random import zlib import re import os, time Save ...

  7. Spring复习

    第一天 IOC:控制反转,对象的创建权交给Spring DI:依赖注入,前提必须有IOC的环境,Spring管理这个类的时候将类的依赖的属性注入(设置)进来. 包括集合的注入 ClassPathXml ...

  8. sitemesh使用

    参考文章: https://my.oschina.net/heroShane/blog/199177 http://blog.csdn.net/u013019926/article/details/1 ...

  9. [UE4]瞬移

    1.设置Input,事件名称设置为Teleport 2.设置事件Teleport 3.

  10. UE4 UMG

    转自:https://www.cnblogs.com/kadaj/p/6412937.html 1.创建关卡类 1.创建C++类继承LevelScriptActor 2.打开关卡蓝图 Class Se ...