CentOS7安装erlang的方法

版权声明:本网站发表的文章,版权归原作者所有;不得转载。 https://blog.csdn.net/qq_41709494/article/details/86740162

可以到github下载:https://github.com/rabbitmq/erlang-rpm

#从https://github.com/rabbitmq/erlang-rpm可看到配置.repo

[root@node1 ~]# cat /etc/yum.repos.d/local.repo 
[CentOS]
name=CentOS
baseurl=file:///mnt/CentOS
gpgcheck=0
enabled=1

[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq-erlang/rpm/erlang/21/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1

#编辑local.repo把rabbitmq-erlang加上去,CentOS是本地yum源

yum install erlang -y

#安装就完成了

第二种方法安装erlang:

wget http://rpmfind.net/linux/centos/7.6.1810/extras/x86_64/Packages/epel-release-7-11.noarch.rpm  # erlang-solutions的依赖包

wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm

rpm -ivh epel-release-7-11.noarch.rpm 

rpm -Uvh erlang-solutions-1.0-1.noarch.rpm

#执行以上后会:

[root@node1 ~]# ls /etc/yum.repos.d/
epel.repo  epel-testing.repo  erlang_solutions.repo  local.repo

#多了三个.repo,就行了

yum install erlang -y

#安装就成功了

第三种安装方法:

#浏览https://dl.bintray.com/rabbitmq-erlang/rpm/erlang/21/el/7/x86_64/

#点击下载到本地

[root@node2 ~]# rz  #上传erlang-21.2.4-1.el7.centos.x86_64.rpm文件

#上传成功

[root@node2 ~]# wget https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc #下载密钥

 

#下载成功

[root@node2 ~]# rpm --import rabbitmq-release-signing-key.asc  #导入rpm库的密钥
rpm -ivh erlang-21.2.4-1.el7.centos.x86_64.rpm 

#这样安装就可以了

不导入密钥会出现:

 

没有更多推荐了,返回首页