[TOC]java
sudo yum install -y gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git
git
下載地址:https://www.erlang.org/downloadscentos
cd /home/download
根據實際情況ui
wget http://erlang.org/download/otp_src_20.2.tar.gz
url
若是下載的慢,建議先下載好再copy進來centos7
tar -zvxf otp_src_20.2.tar.gz
命令行
若是解壓失敗 用這個命令(少個z):tar -vxf otp_src_20.2.tar.gz
code
進入根目錄rabbitmq
cd otp_src_20.2.tar.gz
編譯&安裝
./otp_build autoconf
./configure && make && sudo make install
進入erlang命令行表示成功
erl
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