github rpm地址:

https://github.com/rabbitmq/erlang-rpm

要安装rabbitmq先安装它的语言 创建erlang repo

/etc/yum.repos.d/rabbitmq-erlang.repo

# In /etc/yum.repos.d/rabbitmq-erlang.repo
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq-erlang/rpm/erlang/22/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1

刷新缓存

yum clean all

yum makecache

安装erlang

yum install erlang

出现问题:

  / rpm -ivh erlang-22.3-1.el7.x86_64.rpm
准备中... ################################# [100%]
file /usr/lib64/erlang/bin/epmd from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/erl from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/erlc from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/escript from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/run_erl from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/to_erl from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/no_dot_erlang.boot from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/start from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/start.boot from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/start.script from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/start_clean.boot from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/start_erl from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/start_sasl.boot from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/include/driver_int.h from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/include/erl_driver.h from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/include/erl_drv_nif.h from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/include/erl_fixed_size_int_types.h from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/include/erl_int_sizes_config.h from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/include/erl_memory_trace_parser.h from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/include/erl_nif.h from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/include/erl_nif_api_funcs.h from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/lib/liberts.a from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/lib/liberts_r.a from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/include/ei.h from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/include/ei_connect.h from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/include/eicode.h from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/include/erl_interface.h from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/lib/libei.a from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/lib/libei_st.a from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/lib/liberl_interface.a from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/usr/lib/liberl_interface_st.a from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/releases/RELEASES from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/releases/RELEASES.src from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/releases/start_erl.data from install of erlang-22.3-1.el7.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64

解决方案:

删除旧的erlang其他依赖

yum remove erlang-erts-R16B-03.18.el7.x86_64

安装rabbitmq

vim /etc/yum.repos.d/rabbitmq.repo

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

刷新缓存

yum clean all

yum makecache

安装rabbitmq命令

yum install rabbitmq-server

查询rabbitmq状态

systemctl status rabbitmq-server

创建开机自启动

systemctl enable rabbitmq-server

启动rabbitmq的web管理后台界面命令

rabbitmq-plugins enable rabbitmq_management

服务地址:

http://{node-hostname}:15672/

默认账号:guest 密码:guest

只能 localhost,修改配置允许远程访问:

没有配置文件创建配置文件:

vim /etc/rabbitmq/rabbitmq.config

经典格式

# DANGER ZONE!
#
# allowing remote connections for default user is highly discouraged
# as it dramatically decreases the security of the system. Delete the user
# instead and create a new one with generated secure credentials.
loopback_users = none

新格式

%% DANGER ZONE!
%%
%% Allowing remote connections for default user is highly discouraged
%% as it dramatically decreases the security of the system. Delete the user
%% instead and create a new one with generated secure credentials.
[{rabbit, [{loopback_users, []}]}].

也可以修改下面文件:

vim /usr/lib/rabbitmq/lib/rabbitmq_server-3.8.3/ebin/rabbit.app

找到{loopback_users, [<<"guest">>]},

修改为{loopback_users, []},

新增用户 账号:admin 密码:

rabbitmqctl add_user admin pwd

分配角色 超级管理员

rabbitmqctl set_user_tags admin administrator

更改密码

rabbitmqctl change_password admin 123456

重启

systemctl restart rabbitmq-server

springBoot 启动找不到挂载点,进入web后台设置挂载点

我遇到的服务起不来,配置被我玩坏了,解决方案

Job for rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.

服务起不来:

有一种解决版本是将“/var/lib/rabbitmq/mnesia/”目录下的所有内容删掉(rm -rf *),然后重新启动再配置。

Centos7上安装rabbitmq和使用的更多相关文章

  1. 在CentOS7上安装RabbitMQ

    安装过程参考官网: Installing on RPM-based Linux (RHEL, CentOS, Fedora, openSUSE) 首先需要安装erlang,参考:http://fedo ...

  2. CentOS7上安装RabbitMQ

    1.首先需要安装erlang RabbitMq依赖于erlang,所以得先装这个.推荐使用阿里云的镜像资源. 通过这个链接 https://opsx.alibaba.com/mirror/search ...

  3. 在 CentOS7 上安装 RabbitMQ 消息队列中间件

    RabbitMQ 是流行的开源消息队列系统,是 AMQP(Advanced Message Queuing Protocol 高级消息队列协议)的标准实现,用 erlang 语言开发.RabbitMQ ...

  4. [转]centos7环境安装rabbitMQ

    使用专业的消息队列产品rabbitmq之centos7环境安装 http://www.cnblogs.com/huangxincheng/p/6006569.html CentOS7上安装Rabbit ...

  5. centos7环境安装rabbitMQ

    使用专业的消息队列产品rabbitmq之centos7环境安装 http://www.cnblogs.com/huangxincheng/p/6006569.html [源码安装,适用GNOME + ...

  6. 【rabbitmq】Centos7 下安装rabbitmq

    rabbitmq安装 rabbitmq的安装依赖erlang,首先应该先安装erlang,然后安装rabbitmq: Step1:安装erlang erlang-rpm安装教程 选择在Centos7 ...

  7. centos7下安装rabbitmq

    RabbitMQ: RabbitMQ是流行的开源消息队列系统,是AMQP(Advanced Message Queuing Protocol高级消息队列协议)的标准实现,用erlang语言开发.Rab ...

  8. centos7.4安装rabbitmq服务(3.7.10版本)

    一.需要安装erlang版本依赖,可以使用二进制安装方式,也可以通过rpm安装,但是安装的时候会提示需要erlang版本>=19.3,而且直接默认yum仓库中的版本较低.,为了节省时间,文章中直 ...

  9. 在centos7上安装Jenkins

    在centos7上安装Jenkins 安装 添加yum repos,然后安装 sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins ...

随机推荐

  1. git配置多个ssh key

    随着工作的深入,我们通常都会有多个git账户.比如公司gitlab一个账户,github或gitee有一个账户.而平时我们又回通过 配置ssh公私钥认证的方式省去繁琐的登录远程仓库的操作,不同的git ...

  2. 【记录】如何造一个vite插件(2)

    上一篇已经把vite插件的基础结构搭建起来了,这一次就来聊聊继续完善开发环境. 完善开发环境 生成d.ts文件 先来修改一下lib/index.ts这个文件 export interface user ...

  3. 前端开发入门到进阶第四集【使用sublime安装jshint和cssLint】

    参考:https://blog.csdn.net/qq_27965129/article/details/52786224 使用sublime安装JSHint插件: 1,解决不能使用package c ...

  4. bash对一个目录中文件名的遍历

    for var in *      对当前目录中文件名的遍历 for var in /xx/xx/* 对绝对路径目录的遍历 ${var##*/}  变量扩展取文件名的基名 $var =~ ^[0-9] ...

  5. 在Rancher中修改K8S服务参数的万金油法则

    作者简介 王海龙,Rancher中国社区技术经理,负责Rancher中国技术社区的维护和运营.拥有7年的云计算领域经验,经历了OpenStack到Kubernetes的技术变革,无论底层操作系统Lin ...

  6. 网络损伤仪WANsim中的时延的不同模型

    网络损伤仪WANsim中的3种时延模型 时延指的是报文从网络的一端到达另一端所花费的时间. 网络损伤仪WANsim中为用户提供了3种时延损伤的模型.常量模型.均匀分布.正态分布. 这3种模型按照各自的 ...

  7. go反射原理

    go反射原理 本文基于go1.13.15 1.go汇编 1.1 基本语法 go采用plan9的汇编器完成汇编,有下面几个重要的伪寄存器 FP: Frame pointer: 局部变量访问 PC: Pr ...

  8. python框架之Flask

    介绍:Flask是一个使用 Python 编写的轻量级 Web 应用框架.其 WSGI 工具箱采用 Werkzeug ,模板引擎则使用 Jinja2 . WSGl:Web Server Gateway ...

  9. 第二篇 -- SpringBoot入门Helloworld

    之前讲Jmeter接口的时候讲过社区版怎么创建web接口,那么现在用企业版创建一个Springboot项目.企业版自带Springboot,新建起来更加简单. 第一步:新建一个项目 第二步:选择Spr ...

  10. 第四篇--git 上传可能出现的问题

    1. Q:fatal: TaskCanceledException encountered. A task was canceled. A:$ git config --system --unset ...