1、 下载安装包
wget http://erlang.org/download/otp_src_19.0.tar.gz
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.5/rabbitmq-server-generic-unix-3.6.5.tar.xz
2、 安装需要的类库
yum install ncurses ncurses-base ncurses-devel ncurses-libs ncurses-static ncurses-term ocaml-curses ocaml-curses-devel -y
yum install openssl-devel zlib-devel -y
3、编译安装erlang
tar -xvzf otp_src_19.0.tar.gz
cd otp_src_19.0
./configure --prefix=/usr/local/erlang --with-ssl -enable-threads -enable-smmp-support -enable-kernel-poll --enable-hipe --without-javac
–without-javac:没有java环境需要加上,如果有去掉
make && make install
4、编译安装rabbitmq
xz -d rabbitmq-server-generic-unix-3.6.5.tar.xz
tar -xvf rabbitmq-server-generic-unix-3.6.5.tar
mv rabbitmq_server-3.6.5 /usr/local/
cd /usr/local/rabbitmq_server-3.6.5/sbin
5、配置环境变量
vim rabbitmq-server
添加以下内容