首先在官网下载需要的 安装包通过Xshell上传到Linux服务器上:
安装命令如下:
erlang install
#解压
[root@localhost app]# tar xzf otp_src_19.2.tar.gz
[root@localhost app]# cd otp_src_19.2
#编译安装
[root@localhost otp_src_19.2]# ./configure --prefix=/mnt/app/erlang
or:
[root@localhost otp_src_19.2]# ./configure --prefix=/mnt/app/erlang --without-javac
[root@localhost otp_src_19.2]# make
[root@localhost otp_src_19.2]# make install
#修改环境变量
[root@localhost otp_src_19.2]# echo 'export ERLANG_HOME=/mnt/app/erlang' | tee /etc/profile.d/erlang.sh
[root@localhost otp_src_19.2]# echo 'export ERLANG_BIN=${ERLANG_HOME}/bin' | tee -a /etc/profile.d/erlang.sh
[root@localhost otp_src_19.2]# echo 'export PATH=${ERLANG_BIN}:$PATH' | tee -a /etc/profile.d/erlang.sh
#使修改文件生效