rabbitmq quick setup for ubuntu

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#install
echo "deb https://dl.bintray.com/rabbitmq/debian xenial main" | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
sudo apt-get install rabbitmq-server

#service start
service rabbitmq-server start
sudo service rabbitmq-server status

#web admin
sudo rabbitmq-plugins enable rabbitmq_management
#login by guest
127.0.0.1:15672 guest guest

#new user
sudo rabbitmqctl add_user fanfq fanfq
sudo rabbitmqctl set_user_tags fanfq administrator

如果是服务器安装,客户端是没法通过guest用户登录的,则需要创建一个新的用户并赋予admin权限,后续的操作均可通过网页管理。

Fred范方青 wechat
项目合作请联系我私人微信: fredtv23
0%