Installation and upgrade of rabbitmq server

Johnson wood 2021-04-08 09:58:45
installation upgrade rabbitmq server

Download address

rabbitmq and erlang The corresponding version of :
rabbitmq-server Package download address :
erlang Package download address :
socat Package download address :


You need to check the version of your system before installing

# uname -a
Linux 3.10.0-1160.21.1.el7.x86_64 #1 SMP Tue Mar 16 18:28:22 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

You can see that my system is el7.x86_64 Version of . download rabbitmq-server、erlang、socat They all need to correspond to the system version
install rabbitmq-server Must be installed before erlang and socat, because rabbitmq-server We need to rely on these two .

install socat

install socat Just install the latest one ok 了

rpm -ivh socat-

-i representative install, -v and -h It's just some parameter settings of printing operation log

My system is el7.x86_64 Version of , So download the version

install erlang

First, check out rabbitmq-server The version corresponds to erlang edition ,erlang Download address :


So download it erlang Of 23.x The latest version .

rpm -ivh erlang-23.3.1-1.el7.x86_64.rpm

install rabbitmq-server

installed erlang and socat after , To install rabbitmq-server, Download address :
Find the system corresponding to rabbitmq-server Version and key to download :

First, import the key

rpm -import

Download and install rabbitmq-server

rpm -ivh rabbitmq-server-3.8.14-1.el7.noarch.rpm

It should be installed at this time rabbitmq-server 了 .

Start and stop rabbitmq service

start-up rabbitmq service

nohup /usr/lib/rabbitmq/bin/rabbitmq-server start > rabbitmq.log &

stop it rabbitmq service

/usr/lib/rabbitmq/bin/rabbitmqctl stop

upgrade rabbitmq service

If it is rabbitmq-server The upgrade span is a little larger , that erlang Version may also need to be upgraded .
At this point, I put rabbitmq-server Downgrade to 3.7.16,erlang Version is 21

/usr/lib/rabbitmq/bin/rabbitmqctl version
erl version
Erlang/OTP 21 [erts-] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe]

Now it's time to upgrade rabbitmq-server by 3.8.14 edition . upgrade rabbitmq-sever Before service , First stop rabbitmq Services and upgrades erlang edition .
It should be noted that , The command parameters of the upgrade service are -U namely upgrade, If it is the command parameter of the installation service, it is -i namely install.

/usr/lib/rabbitmq/bin/rabbitmqctl stop
# upgrade erlang edition
rpm -Uvh erlang-23.3.1-1.el7.x86_64.rpm
rpm -Uvh rabbitmq-server-3.8.14-1.el7.noarch.rpm

Then upgrade rabbitmq complete .

rabbitmq Administrative console

Starting the console requires enabling rabbitmq_management plug-in unit

/usr/lib/rabbitmq/bin/rabbitmq-plugins enable rabbitmq_management

take RabbitMQ Ownership of the document is provided to RabbitMQ user

chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/

to rabbitmq Add administrator users to the management console

rabbitmqctl add_user admin adminPassword
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"

Open the address after the operation http:// Your service IP:15672, After logging in, you can view such an interface



That's about rabbitmq Some basic operations of service installation and upgrade .

Personal blog address :

If my article helps you , Can follow my WeChat public number , Share the article to you at the first time
 WeChat official account

本文为[Johnson wood]所创,转载请带上原文链接,感谢

  1. Zookeeper分布式锁?
  2. Zookeeper distributed lock?
  3. 嵌入式Linux_Framebuffer_03点阵显示ASCII字符串
  4. 嵌入式Linux_Framebuffer_02字符编码
  5. Embedded Linux_ Framebuffer_ 03 dot matrix display ascii string
  6. Embedded Linux_ Framebuffer_ 02 character encoding
  7. Looking forward to new product launch of Xiaomi in spring CNMO takes you to see 11 new products in advance
  8. An inventory of the commonly used garbage collectors in Java
  9. Why is it so easy to get started with HBase?
  10. Implementation of PRC framework based on netty
  11. 2021 Java back end engineer must know knowledge - (Dubbo, distributed RPC framework)
  12. 关于spring advisor和元数据 同时来管理事务的问题
  13. How to manage transactions with spring advisor and metadata at the same time
  14. 使用Playwright对Java API实现自动视觉测试 - applitools
  15. Using playwright to implement automatic visual testing for Java API - applitools
  16. Dubbo和Spring cloud、Istio对比图
  17. Comparison of Dubbo with spring cloud and istio
  18. HttpServletRequest、通过request获得请求头、请求体等、解决中文乱码等问题
  19. Mybatis学习笔记-一对一,一对多,多对多关联查询
  20. Mybatis学习笔记-基本概念与操作
  21. HttpServletRequest, obtaining request header and request body through request, solving Chinese garbled code and other problems
  22. Mybatis learning notes - one to one, one to many, many to many association query
  23. Mybatis learning notes - basic concepts and operation
  24. Spring Cloud 升级之路 - 2020.0.x - 3. Undertow 的 accesslog 配置
  25. Spring cloud upgrade road - 2020.0. X - 3. Accesslog configuration of undertow
  26. 被Java培训机构坑骗后,我在这里找回了自信
  27. After being cheated by java training institutions, I found my confidence here
  28. Linux下安装Mysql出现的常见问题以及解决办法
  29. Common problems and solutions of installing MySQL under Linux
  30. java并发编程JUC第十二篇:AtomicInteger原子整型
  31. Java Concurrent Programming JUC Chapter 12: atomicinteger atomic integer
  32. 面经手册 · 第29篇《Spring IOC 特性有哪些,不会读不懂源码!》
  33. Chapter 29 "what are the features of spring IOC? I can't understand the source code! 》
  34. 浅析linux容器--Docker
  35. Analysis of Linux container -- docker
  36. 换种方法学操作系统,轻松入门Linux内核
  37. 浅析linux容器--Docker
  38. Another way to learn operating system, easy access to Linux kernel
  39. Analysis of Linux container -- docker
  40. 手摸手教你阅读和调试大型开源项目 ZooKeeper
  41. Hand in hand teaching you to read and debug large open source project zookeeper
  42. 基于SpringBoot 在线答题系统 含小程序!
  43. 10个优秀开源JavaScript模板引擎
  44. JavaScript基础知识及写法
  45. Based on springboot online answering system, including small procedures!
  46. 重磅!谷歌Fuchsia操作系统将支持运行Linux应用程序
  47. (四十) springcloud分布式商城之跟我学习SpringCloud-Gateway整合Eureka路由转发
  48. Spring IOC 特性有哪些,不会读不懂源码!
  49. 手摸手教你阅读和调试大型开源项目 ZooKeeper
  50. 10 excellent open source JavaScript template engines
  51. Basic knowledge and writing method of JavaScript
  52. win10安装mysql5.7
  53. Heavy weight! Google's Fuchsia operating system will support running Linux applications
  54. (40) Spring cloud distributed mall learn from me spring cloud gateway integrates Eureka routing and forwarding
  55. What are the spring IOC features? I can't understand the source code!
  56. Hand in hand teaching you to read and debug large open source project zookeeper
  57. Install mysql5.7 in win10
  58. SCIP:构造数据抽象--数据结构中队列与树的解释
  59. Spring Cloud+Nacos实现服务注册中心(Hoxton版本)
  60. rabbitmq-server的安装与升级