In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to install RabbitMq in Ubuntu 16.04? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.
Preparatory work
One server: Ubuntu Server 16.04.1 LTS 64 bit
Install RabbitMq
You can refer to the installation tutorial (Installing on Debian and Ubuntu) on RabbitMq's official website for installation.
Here we use apt-get to install, just a few simple commands:
1. Since rabbitMq requires the support of erlang language, you need to install erlang before installing rabbitMq, and execute the command:
Apt-get install erlang-nox # install erlang
Erl # check the relang language version. Successful execution means that relang is installed successfully.
two。 Add a public key
Wget-O-https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add-
3. Update software package
Apt-get update
4. Install RabbitMQ
Apt-get install rabbitmq-server # installation starts automatically successfully
5. View RabbitMq status
Systemctl status rabbitmq-server # Active: active (running) description is running
# service rabbitmq-server status can also be viewed with the service instruction, as with the systemctl instruction
6. Start, stop, restart
Service rabbitmq-server start # Startup
Service rabbitmq-server stop # stop
Service rabbitmq-server restart # restart
After performing the above steps, rabbitMq has been installed successfully.
7. To enable the visual interface on the web side, we also need to configure the Management Plugin plug-in
Rabbitmq-plugins enable rabbitmq_management # enable plug-ins
Service rabbitmq-server restart # restart
At this point, you should be able to view it through http://localhost:15672 and log in using the default account guest/guest.
Note: for RabbitMQ 3.3and later versions, guest can only be logged in locally to the service.
Glancing at the official document, it says that guest users will be created by default, but can only be logged in locally on the server. It is recommended to create other new users and authorize them to do other operations.
8. View users
Rabbitmqctl list_users
9. Add administrative user
Rabbitmqctl add_user admin yourpassword # increases the number of ordinary users
Rabbitmqctl set_user_tags admin administrator # assigns the administrator role to ordinary users
Ok, you can access your rabbitmq monitoring page by typing: http:// server Ip:15672/ in your browser. Log in with the new user you just added.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.