简介

RabbitMQ 由erlang语言开发,所以需要先安装erlang环境才能运行

Centos7 安装erlang

1、依赖安装

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

2、 下载并解压

wget http://erlang.org/download/otp_src_23.0.tar.gz
tar xf otp_src_23.0.tar.gz && cd otp_src_23.0/
./configure --prefix=/usr/local/erlang

make -j 2
make install

3、配置环境变量

cat <<'EOF' >> /etc/profile
# erlang
export ERLANG_HOME=/usr/local/erlang
export PATH=$PATH:$ERLANG_HOME/bin
EOF

4、 验证是否安装成功

source /etc/profile

[root@cs1 elk]# erl  # 能进入以下界面表示erlang环境成功
Erlang/OTP 23 [erts-11.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]

Eshell V11.0  (abort with ^G)
1>
Copyright © 运维知识库 all right reserved,powered by Gitbook文件修订时间: 2023-09-19 10:45:38

results matching ""

    No results matching ""