// 下载Erlang:
wget http://www.erlang.org/download/otp_src_R16B02.tar.gz
//解压
tar zxvf otp_src_R16B02.tar.gz
//进入
cd otp_src_R16B02
// 配置安装
./configure --prefix=/usr/local/erlang --with-ssl -enable-threads -enable-smmp-support -enable-kernel-poll --enable-hipe --without-javac
// 编译安装
make && make install
// 配置环境变量, vim /etc/profile, 添加:
ERLANG_HOME=/usr/local/erlang
PATH=$ERLANG_HOME/bin:$PATH
export ERLANG_HOME
export PATH
source /etc/profile
输入命令erl检验是否安装成功
4、rabbitmq-server安装:
// 依赖包xmlto,如果yum安装失败,可以直接下载源葆编译,这个很简单,这里就不再详细说了
yum install xmlto
// 下载
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.4.4/rabbitmq-server-3.4.4.tar.gz
//解压
tar -zxvf rabbitmq-server-3.4.4.tar.gz
//进入
cd rabbitmq-server-3.4.4
// 编译
make
// 安装
make install TARGET_DIR=/opt/rabbitmq SBIN_DIR=/opt/rabbitmq/sbin MAN_DIR=/opt/rabbitmq/man
安装web插件管理界面
//创建进入
mkdir /etc/rabbitmq
//安装插件
rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
mochiweb
webmachine
rabbitmq_web_dispatch
amqp_client
rabbitmq_management_agent
rabbitmq_management
Plugin configuration has changed. Restart RabbitMQ for changes to take effect.
[root@rabbitmqmaster sbin]# ls /etc/rabbitmq
enabled_plugins