当前位置:网站首页>Erlang installation

Erlang installation

2022-07-06 16:46:00 Daily enlightenment

(1) Modify hostname

RabbitMQ Is accessed by host name , You must specify an accessible host name .

# vim /etc/sysconfig/network 

# vim /etc/hosts  

Added a new line , The front is the server ip, Add the computer host name after the space  

(2) Installation dependency

# yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC unixODBC-devel

  (3) Upload and unzip

Upload otp_src_22.0.tar.gz To /usr/local/tmp Directory , Go to the directory and unzip .

When decompressing, pay attention to , This package does not have gzip attribute , The decompression parameters have no z, Only xf 

# cd /usr/local/tmp
# tar xf otp_src_22.0.tar.gz  

(4)  Configuration parameters

First new /usr/local/erlang Folder , As the installation folder

# mkdir -p /usr/local/erlang

Enter folder

# cd otp_src_22.0 

Configuration parameters

# ./configure --prefix=/usr/local/erlang --with-ssl --enable-threads --enable-smp-support --enable-kernel-poll --enable-hipe --without-javac 

(5) Compile and install

compile

# make

install

# make install 

(6) Modify environment variables

modify /etc/profile file

# vim /etc/profile 

Add the following code to the file

export PATH=$PATH:/usr/local/erlang/bin 

Run the file , Let the changes take effect

# source /etc/profile

(7) Check if the configuration is successful

# erl -version

原网站

版权声明
本文为[Daily enlightenment]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131314160876.html