// Erlang 安装
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
// 下载Erlang:http://www.erlang.org/download/otp_src_R16B02.tar.gz,解压
// 配置安装
./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检验是否安装成功
// rabbitmq-server安装:
// 依赖包xmlto
yum install xmlto
// 下载,解压之
http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.5/rabbitmq-server-3.1.5.tar.gz
// 编译
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
// 启动rabbitmq
rabbitmq-server start
// 有可能报主机名找不到的错误,
vim /etc/hosts
127.0.0.1 localhost ${hostName}
guest/guest 登录localhost:15672