#安装必要依赖
sudo yum install -y gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git
下载地址:https://www.erlang.org/downloads
#进入下载目录
cd /home/download
#下载
wget http://erlang.org/download/otp_src_20.2.tar.gz
tar -zvxf otp_src_20.2.tar.gz
#进入根目录
cd otp_src_20.2.tar.gz
#编译&安装
./otp_build autoconf
./configure && make && sudo make install
#进入erlang命令行表示成功
erl
#创建yum源
sudo vi /etc/yum.repos.d/rabbitmq-erlang.repo
#文件内容
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/20/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
sudo yum install -y erlang
#进入erlang命令行表示成功
erl
https://github.com/erlang/otp/blob/maint/HOWTO/INSTALL.md