1、安装Erlang
安装类库
yum -y install ncurses-devel
yum -y install openssl-devel
yum -y install unixODBC-devel
yum -y install gcc-c++
准备安装包otp_src_18.2.1.tar.gz,解压,配置、编译并安装
./configure --prefix=/hwd/software/erlang
make
make install
配置环境变量
export ERLANG_HOME=/hwd/software/erlang
export PATH=$ERLANG_HOME/bin:$PATH
测试
2、安装RabbitMQ
准备安装包rabbitmq-server-generic-unix-3.6.9.tar.xz,解压
xz -d rabbitmq-server-generic-unix-3.6.9.tar.xz
tar -xvf rabbitmq-server-generic-unix-3.6.9.tar
启动插件
./rabbitmq-plugins enable rabbitmq_management
启动服务
./rabbitmq-server -detached
关闭防火墙,否则非本地设备无法访问RabbitMQ服务
systemctl status firewalld
systemctl stop firewalld
添加用户
./rabbitmqctl add_user root 123456
设置用户角色
./rabbitmqctl set_user_tags root administrator
查看用户
./rabbitmqctl list_users
设置用户权限
./rabbitmqctl set_permissions -p / root ".*" ".*" ".*"
查看RabbitMQ运行状态
./rabbitmqctl status
浏览器测试
关闭服务
./rabbitmqctl stop
原文地址:https://blog.csdn.net/vinegar93/article/details/82867937