1、sudo apt-get install -y rabbitmq-server
2、 sudo systemctl enable rabbitmq-server.service
3、 ln -s '/usr/lib/systemd/system/rabbitmq-server.service' '/etc/systemd/system/multi-user.target.wants/rabbitmq-server.service'
4、 sudo systemctl start rabbitmq-server.service
6、sudo rabbitmqctl add_user admin admin
7、sudo rabbitmqctl set_permissions admin ".*" ".*" ".*"
8、 rabbitmq-plugins list
sudo rabbitmq-plugins enable rabbitmq_management #启动插件
9、 rabbitmqctl set_user_tags admin administrator monitoring policymaker management
sudo systemctl restart rabbitmq-server.service
lsof -i:15672