RabbitMQ management and monitoring

  • Enable management plugin function
1. The management plugin is not installed by default. You need to execute the following commands:
   $ cd /usr/lib/rabbitmq/bin/
   $ sudo rabbitmq-plugins enable rabbitmq_management

2. The management plugin provides HTTP API to manage and monitor RabbitMQ Server, including the following functions :
  • Delete, generate, list, including: exchanges, queues, bindings, users, virtual hosts and permissions
  • Monitor queue length, message rates per channel, data rates per connection, etc.
  • Send and receive messages
  • 监控Erlang processes,file descriptors,memory use
  • Export/export object definitions to JSON
  • Forcibly close connections and clear queues
  • Graphical management interface
     Access address: http://localhost:15672, enter the login interface, the default account guest/guest (this account can only log in locally, remote login needs to create another user)

  • Create a remote management account
  $ cd /usr/lib/rabbitmq/bin/ #Username
  and password
  $ sudo rabbitmqctl add_user test 123456 #Users
  set as administrator to access remote
  $ sudo rabbitmqctl set_user_tags test administrator        
  $ sudo rabbitmqctl set_permissions -p / test ".*" ". *" ".*"
quote

    You can also directly add information such as users and passwords through the management platform page. You need to pay attention to whether ports 5672 and 15672 are open.

  • rabbitmqctl command
    The Management command line tool (rabbitmqadmin) has the same function as the Web UI. It is a customized HTTP client that can directly use the HTTP API and download it from the http://server-name:15672/cli page. Use the document address: http://www.rabbitmq.com/management-cli.html

  • rabbitmqadmin command
    rabbitmqctl is a simple command line tool for managing RabbitMQ Server, suitable for management of login via ssh

  • Reference documentation
http://www.open-open.com/lib/view/open1432468144338.html#articleHeader4

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326859313&siteId=291194637