Install Erlang
yum install erlang
or
wget http://erlang.org/download/otp_src_19.0.tar.gz
tar -zxvf otp_src_19.0.tar.gz
cd otp_src_19.0
./configure --prefix=/opt/erlang --without-javac
报错
configure: error: No curses library functions found
configure: error: /bin/sh '/root/otp/erts/configure' failed for erts
解决
yum -y install ncurses-devel
./configure --prefix=/opt/erlang --without-javac
报错
odbc : ODBC library - link check failed
orber : No C++ compiler found
解决
yum list | grep ODBC
yum install unixODBC-devel
./configure --prefix=/opt/erlang --without-javac
安装
make && make install
设置环境变量
vi /etc/profile
#set erlang environment
export PATH=$PATH:/opt/erlang/bin
source /etc/profile
/opt/erlang/bin/erl
Install RabbitMQ Server
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.5/rabbitmq-server-3.6.5-1.noarch.rpm
yum install rabbitmq-server-3.6.5-1.noarch.rpm
提示
Requires: erlang >= R16B-03
Installed: erlang-R14B-04.3.el6.x86_64 (@epel)
erlang = R14B-04.3.el6
忽略erlang的版本问题
rpm -ivh --nodeps rabbitmq-server-3.6.5-1.noarch.rpm
Run RabbitMQ Server
启用管理插件
cd /usr/lib/rabbitmq/bin/
./rabbitmq-plugins enable rabbitmq_management
运行
chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/
service rabbitmq-server start
创建用户赋予权限
rabbitmqctl add_user user pawwword
rabbitmqctl set_user_tags user administrator
rabbitmqctl set_permissions -p / user ".*" ".*" ".*"