1、拉取镜像文件:docker pull centos
2、建立容器,且shell方式进入:docker run -it --name centos.rabbit centos /bin/bash
3、安装gcc: yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
4、安装wget:wget:yum -y install wget
5、安装elang
5.1、下载erlang语言包:
cd /home
wget http://erlang.org/download/otp_src_19.0.tar.gz
5.2、解压:tar xvf otp_src_19.0.tar.gz
5.3、编译安装erlang
cd otp_src_19.0 ./configure --prefix=/usr/local/erlang --with-ssl -enable-threads -enable-smmp-support -enable-kernel-poll --enable-hipe --without-javac make && make install5.4、修改配置
vi /etc/profile
增加以下配置项