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. Android控件总结

    最常用的控件:TextView.EditText.Button.ImageView TextView                                                文本 ...

  2. 阿里云低延时直播 RTS 能力升级 让直播推流效果更佳

    行业背景 直播技术飞速发展让各个行业的用户体验呈现多样化和个性化,不同业务场景下创新实践满足大众对于音视频互动体验和参与的高标准要求.历经2020年初的巨变之后,以视频.游戏.电商.教育为主的互联网经 ...

  3. CTF-wtc_rsa_bbq-writeup

    wtc_rsa_bbq 题目信息: 附件: cry200 解题思路: 1.观察cry200文件,发现该文件是一个二进制文件,用二进制模式查看,发现开头为50 4B 03 04,判断该文件是一个zip文 ...

  4. c语言:结果不理解

    #include <stdio.h> int main() { int a;float b; scanf("a=%d,b=%f",&a,&b); pri ...

  5. PYTHON startswith (endswith类似)

    Python startswith()方法Python startswith() 方法用于检查字符串是否是以指定子字符串开头,如果是则返回 True,否则返回 False.如果参数 beg 和 end ...

  6. python 获取当前py文件所在的位置 及对应的文件名称

    # 导入sys整个模块 import sys # 使用sys模块名作为前缀来访问模块中的成员 print(sys.argv[0]) 当前文件名:12.py 程序运行结果: ============== ...

  7. [刘阳Java]_Web前端入门级练习_迅雷官宣网设计

    也有一段时间没有写一些技术专题文章,今天给大家来几篇Web前端入门级练习的文章.主讲<迅雷官宣网>的设计,相信大家平时也用过迅雷这个下载工具,所以分享的这篇技术大家在一定程序会感兴趣. 先 ...

  8. Java8 DateTime API

    Java 8的日期/时间API,有篇不错的文章,直接转载 原文链接: journaldev 翻译: ImportNew.com- Justin Wu译文链接: http://www.importnew ...

  9. 线性回归与梯度下降(ML作业)

    Loss函数 题目一:完成computeCost.m function J = computeCost(X, y, theta) %COMPUTECOST Compute cost for linea ...

  10. C++第三十五篇 -- 写第一个驱动开发程序

    VS2017+WDK+VMware12+Win10环境配置完毕,接下来写第一个驱动程序. 1.新建一个KMDF的程序. 2.配置项目属性. 3.编译项目.一般这里应该成功,我一台电脑成功了,另一台电脑 ...