标签:yum epel list roo rpm class local arch rabbitmq
在/usr/local 下新建文件夹 rabbitmq
[root@localhost ~]# cd /usr/local
[root@localhost local]# mkdir rabbitmq
[root@localhost local]# cd rabbitmq/
执行命令 引入公钥(我用https 执行时报错)
[root@localhost rabbitmq]# rpm –import http://packages.erlang-solutions.com/rpm/erlang_solutions.asc
vi /etc/yum.repos.d/xxx (xxx是目录中的任意一个已有的yum列表文件)
在文件中增加下述内容:
[erlang-solutions] name=Centos $releasever - $basearch - Erlang Solutions baseurl=https://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch gpgcheck=1 gpgkey=https://packages.erlang-solutions.com/rpm/erlang_solutions.asc enabled=1
接着执行
生成yum缓存信息
yum makecache
安装ErLang
yum -y install erlang
检查安装结果,查看ErLang版本
erl -version
[root@localhost rabbitmq]# yum makecache
[root@localhost rabbitmq]# erl -version Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 10.4.1
说明erlang安装成功
另执行 erl -v 查看erlang的具体版本
[root@localhost sbin]# erl -v Erlang/OTP 22 [erts-10.4.1] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1] [hipe]
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
这里装erlang版本是22的,特别注意,在继续安装rabbitmq之前,应该先查找erlang和rabbitmq的版本搭配问题,因为版本问题,我装了一天没装好rabbitmq .god
rabbitmq的3.7.15是最新支持erlang22的
rabbitmq参考安装博客(rabbitmq3.7)
https://www.cnblogs.com/xiaofengfree/p/10391902.html
安装erlang可能会出现需要安装epel,执行下面命令即可
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
然后到 /etc/yum.repos.d/ 将epel.rpeo的base路基的注释去掉,并在mirrorlist上加上注释
下载安装rabbitmq(3.6)
[root@localhost rabbitmq]# wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el6.noarch.rpm
标签:yum epel list roo rpm class local arch rabbitmq
原文地址:https://www.cnblogs.com/yunian139/p/10993120.html