CentOS 6.8 安装 Erlang 及 RabbitMQ Server
安装 Erlang 19.3
# 安装依赖包 yum install -y gcc gcc-c++ unixODBC-devel openssl-devel ncurses-devel # 下载 erlang 源码包 cd /usr/local/src wget -c http://erlang.org/download/otp_src_19.3.tar.gz # 解压 tar -xzvf ./otp_src_19.3.tar.gz # 编译安装 cd ./otp_src_19.3 ./configure --prefix=/usr/local/erlang --without-javac make && make install # 设置环境变量 vim /etc/profile export PATH=$PATH:/usr/local/erlang/bin # 重新加载配置文件 source /etc/profile # 检查是否安装成功 [root@CentOS-1 ~]# erl Erlang/OTP 19 [erts-8.3] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false] Eshell V8.3 (abort with ^G) 1>
安装 rabbitmq-server-3.6
# 下载源码 cd /usr/local/src wget -c https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_11/rabbitmq-server-3.6.11-1.el6.noarch.rpm # 安装 rpm -ivh --nodeps ./rabbitmq-server-3.6.11-1.el6.noarch.rpm # 配置环境变量 vim /etc/profile export PATH=$PATH:/usr/lib/rabbitmq/bin export PATH=$PATH:/home/erlang/bin