安装rabbitmq
1、创建文件夹
1 2 | mkdir rabbitmq cd rabburmq |
2、安装Erlang
a、在安装RabbitMQ之前,必须安装受支持的Erlang / OTP 版本。在基于RPM的发行版中,Erlang软件包有三种常用的资源。
3 、RabbitMQ Erlang版本要求
When installing with Yum, all dependencies other than Erlang/OTP should be resolved and installed automatically as long as compatible versions are available. When that's not the case, dependency packages must be installed manually.
However, when installing a local RPM file via yum dependencies must be installed manually. The dependencies are:
- erlang: a supported version of Erlang can installed from a number of repositories
- socat
- logrotate
4、Erlang 版本下载
Erlang Yum Repository from Erlang Solutions
Follow the instructions under "Installation using repository" at Erlang Solutions. Note that Erlang Solutions tend to provide cutting edge Erlang versions that may or may not be supported by RabbitMQ. Version locking (see below) is recommended when Erlang installed using this option.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 2019_10_09_16:47:28[root@izbp18tnigcymjlz2mm69lz rabbitmq]# rpm -ihv esl-erlang_22.1.2-1_centos_7_amd64.rpm 2019_10_09_16:47:28warning: esl-erlang_22.1.2-1_centos_7_amd64.rpm: Header V4 RSA/SHA256 Signature, key ID a14f4fca: NOKEY 2019_10_09_16:47:28Preparing... ################################# [100%] 2019_10_09_16:47:28Updating / installing... 2019_10_09_16:47:34 1:esl-erlang-22.1.2-1 ################################# [100%] 2019_10_09_16:47:34Erlang OTP 22.1.2 installed 2019_10_09_16:47:37[root@izbp18tnigcymjlz2mm69lz rabbitmq]# erl 2019_10_09_16:47:37Erlang/OTP 22 [erts-10.5.2] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1] [hipe] 2019_10_09_16:47:37 2019_10_09_16:47:37Eshell V10.5.2 (abort with ^G) 2019_10_09_16:47:391> 2019_10_09_16:47:39[4]+ Stopped erl 2019_10_09_16:47:44[root@izbp18tnigcymjlz2mm69lz rabbitmq]# ls 2019_10_09_16:47:44esl-erlang_22.1.2-1_centos_7_amd64.rpm esl-erlang_R16B03-6_centos_6_amd64.rpm rabbitmq-release-signing-key.asc rabbitmq-server-3.8.0-1.el7.noarch.rpm rabbitmq-server-3.8.0-1.el7.noarch.rpm.asc 2019_10_09_16:47:55[root@izbp18tnigcymjlz2mm69lz rabbitmq]# rpm -ivh rabbitmq-server-3.8.0-1.el7.noarch.rpm 2019_10_09_16:47:55Preparing... ################################# [100%] 2019_10_09_16:47:55Updating / installing... 2019_10_09_16:47:55 1:rabbitmq-server-3.8.0-1.el7 ################################# [100%] |
5、快速安装脚本
Using PackageCloud Yum Repository
A Yum repository with RabbitMQ packages is available from PackageCloud.
A quick way to install is to use a Package Cloud-provided script. Package Cloud also can be used to install a recent Erlang version via yum.
There are more installation options available:
- Using PackageCloud Chef cookbook
- Using PackageCloud Puppet module
- Manually
See PackageCloud RabbitMQ repository instructions.
6、安装rabbitmq
导入密钥 # import the new PackageCloud key that will be used starting December 1st, 2018 (GMT) rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey # import the old PackageCloud key that will be discontinued on December 1st, 2018 (GMT) rpm --import https://packagecloud.io/gpg.key
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构