su - root
wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
yum install epel-release
yum install erlang
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm
yum install rabbitmq-server-3.6.6-1.el7.noarch.rpm
service rabbitmq-server start
service rabbitmq-server status
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server stop
service rabbitmq-server start
firewall-cmd --permanent --add-port=15672/tcp
firewall-cmd --permanent --add-port=5672/tcp
rabbitmqctl list_vhosts
rabbitmqctl add_vhost bysujcs
rabbitmqctl list_vhosts
rabbitmqctl add_user bysujc 123456
rabbitmqctl set_permissions -p bysujcs bysujc ‘.‘ ‘.‘ ‘.*‘
rabbitmqctl set_user_tags bysujc administrator
原文:https://www.cnblogs.com/soulmatesjc/p/11531012.html