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 > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the example analysis of RabbitMQ stand-alone deployment and installation, which has a certain reference value, and interested friends can refer to it. I hope you will gain a lot after reading this article.
Brief introduction
RabbitMQ is an open source implementation of AMQP developed by the Erlang language.
Deploy and install the erlang environment
Since rabbitmq is developed based on the erlang language, erlang must be installed first.
Wget http://www.erlang.org/download/otp_src_22.1.tar.gztar xzf otp_src_22.1.tar.gz. / configure-- prefix=/usr/local/erlang-- without-javac make & & make install install Rabbitmq
Official website: https://www.rabbitmq.com/download.html
Wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.1/rabbitmq-server-generic-unix-3.8.1.tar.xzunxz rabbitmq-server-generic-unix-3.8.1.tar.xzmv rabbitmq_server-3.8.1/ rabbitmq_servermv rabbitmq_server / home/data/ sets the environment variable # # set erlang envexport ERLANG_HOME=/usr/local/erlangexport PATH=$ERLANG_HOME/bin::$PATH# set rbtmq envexport RBTMQ_HOME=/home/data/rabbitmq_serverexport PATH=$RBTMQ_HOME/sbin::$PATH
Common operation and maintenance commands start related commands
# # start rabbitmq-server-detached## stop rabbitmqctl stop## status rabbitmqctl status### start web plug-in rabbitmq-plugins enable rabbitmq_management
User management
# # View user rabbitmqctl list_users## add user rabbitmqctl add_user knight 123456users configure permissions rabbitmqctl set_permissions-p "/" knight ". *" # set tagrabbitmqctl set_user_tags knight administrator## to delete default user rabbitmqctl delete_user guest # modify password rabbimqctl change_password {username} {newpassword} # set user role Tag can be administrator,monitoring, managementrabbitmqctl set_user_tags {username} {tag...}
Virtual host operation
# # add a virtual host rabbitmqctl add_vhost / cloudmall # # View all virtual host rabbitmqctl list_vhosts## view the permissions of virtual host rabbitmqctl list_permissions-p / cloudmall # # delete virtual host rabbitmqctl delete_vhost / cloudmall
Operation queue command
# # query all queues rabbitmqctl list_queues # clear queue messages rabbitmqctl-p vhostpath purge_queue blue
Graphical interface operation
After opening the management interface plug-in, you can log in to http://ip:15672 in the browser.
Thank you for reading this article carefully. I hope the article "sample Analysis of RabbitMQ stand-alone deployment and installation" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.