1.添加源
1 | echo "deb https://dl.bintray.com/rabbitmq/debian xenial main" | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list |
2.新增公钥
1 | wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add - |
3.更新源
1 | sudo apt-get update |
4.安装rabbitmq-server
1 | sudo apt-get install rabbitmq-server |
5.查看安装的插件
1 | sudo rabbitmq-plugins enable rabbitmq_management |
6.查看是否安装成功
1 | netstat -tunlp | grep beam |
7.查看用户
1 | sudo rabbitmqctl list_users |
8.添加用户
1 | sudo rabbitmqctl add_user admin admin |
9.远程访问
1 | rabbitmqctl set_permissions -p "/" hollysys ".*" ".*" ".*" |
10.重启RabbitMQ
1 | 停止rabbitmq |