Original link: http://blog.csdn.net/rickey17/article/details/72756766
Add source
Add a public key (no warning will be added)
Update source
Installing Rabbitmq-server
‘deb http://www.rabbitmq.com/debian/ testing main‘ | sudo tee /etc/apt/sources.list.d/rabbitmq.listwget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -sudo apt-get updatesudo apt-get install rabbitmq-server
With the command described in the previous article Invoke-rc.d Rabbitmq-server stop/start/etc We see that the process is started
[Email protected]:/etc/apt/sources.list.d$ invoke-rc.d rabbitmq-Server Status rabbitmq-SERVER.SERVICE-RABBITMQ Broker Loaded:loaded (/lib/systemd/system/rabbitmq-Server.service; Enabled Vendor preset:enabled) active:active (running) since four2017-15L2520:42:CST;5min ago Main PID:4865 (BEAM.SMP) Status:"Initialized" CGroup:/system.slice/rabbitmq-server.service├─4865/usr/lib/erlang/erts-7.3/bin/beam.smp-w w-a64-p1048576-t5000000-STBT DB-ZDBBL32000-kTrue---root/usr/lib/erlang├─4942/usr/lib/erlang/erts-7.3/bin/epmd-daemon├─5074 Inet_gethost4└─5075 Inet_gethost4May2520:42:XQ-VPCEG17YC rabbitmq-server[4865]: RabbitMQ3.6.10. Copyright (C)2007-Pivotal Software, Inc.May2520:42:XQ-VPCEG17YC rabbitmq-server[4865]:# # # # # Licensed under the MPL. See http://www.rabbitmq.com/May2520:42:XQ-VPCEG17YC rabbitmq-server[4865]:## ##May2520:42:XQ-VPCEG17YC rabbitmq-server[4865]:########## Logs:/var/log/rabbitmq/[email protected]May2520:42:XQ-VPCEG17YC rabbitmq-server[4865]:###### # #/var/log/rabbitmq/[email protected]May2520:42:XQ-VPCEG17YC rabbitmq-server[4865]:##########May2520:42:XQ-VPCEG17YC rabbitmq-server[4865]: Starting broker ...May25 20: 42: 25 xq-vpceg17yc rabbitmq-server[ 4865]: systemd unit for activation check: " Rabbitmq-server.service "5 month 25 20:< Span class= "Hljs-number" >42:25 xq-vpceg17yc systemd[1]: Started RabbitMQ Broker. 5 month 25 20: 42:25 xq-vpceg17yc rabbitmq- Server[4865]: Completed with 0 plugins.
Open Administration page
sudo rabbitmq-plugins enable rabbitmq_management
To view installed plugins
sudo rabbitmqctl list_users
View User
sudo rabbitmqctl list_users
New Admin user
sudo rabbitmqctl add_user admin admin
sudo rabbitmqctl set_user_tags admin Administrator
Log in to the admin page with the account you just set up
http://127.0.0.1:15672
Ubuntu RABBITMQ Installation and configuration