安装配置

安装

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
yum -y update
yum -y install epel-release
yum -y install erlang socat
erl -version

erlang手动安装
# centos内置erlang版本过低手动下载
wget http://erlang.org/download/otp_src_21.3.tar.gz
./configure --prefix=/usr/local/erlang --with-ssl --enable-threads --enable-smp-support --enable-kernel-poll --enable-hipe --without-javac

erlang语言编译配置选项:

–prefix 指定安装目录 

–enable-smp-support启用对称多处理支持(Symmetric Multi-Processing对称多处理结构的简称)

–enable-threads启用异步线程支持

–enable-sctp启用流控制协议支持(Stream Control Transmission Protocol,流控制传输协议)

–enable-kernel-poll启用Linux内核poll

–enable-hipe启用高性能Erlang

–with-ssl 启用ssl包

–without-javac 不用java编译

编译安装
make && make install
配置Erlang的环境变量
vim /etc/profile
export PATH=$PATH:/usr/local/erlang/bin
source /etc/profile
测试Erlang安装是否成功,输入erl,查看版本信息
测试输入hello.,在控制台上看到输入hello,之后退出输入halt().,Erlang环境安装完毕


# rabbitmq安装
rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
rpm --import https://packagecloud.io/gpg.key

curl -s https://packagecloud.io/install/repositories/rabbitmq/
rabbitmq-server/script.rpm.sh | sudo bash

wget
centOS7:
https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.5
/rabbitmq-server-3.8.5-1.el7.noarch.rpm
CentOS8:
https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.5
/rabbitmq-server-3.8.5-1.el8.noarch.rpm
分享到