RabbitMQ 监控9

2022-02-09 19:54:02 浏览数 (1)

Note: 如果不启用 rabbitmq_management 那么在管理界面里是看不到新节点 File descriptorsSocket descriptorsErlang processesMemoryDisk spaceInfo 等相关状态的

再次访问管理界面,就可以看到新加入的节点信息


命令汇总

  • rabbitmq-plugins -h
  • rabbitmq-plugins enable rabbitmq_management
  • rabbitmq-plugins list
  • netstat -ant | grep 15672
  • curl http://localhost:15672
  • perl -e 'print crypt(mqpass,mqpass)'
  • cat mq.passwd
  • tail nginx.conf | grep include
  • cat apps/mq.conf
  • iptables -L -nv | grep 15672
  • grep 15672 /etc/sysconfig/iptables
  • grep 1443 /etc/sysconfig/iptables
  • sbin/nginx -t -c conf/nginx.conf
  • kill -HUP 4623
  • netstat -ant | grep 1443
  • grep 1443 /etc/sysconfig/iptables
  • iptables -L -nv -t nat | grep 1443
  • rabbitmqctl add_user mqmonitor mqpass
  • rabbitmqctl set_user_tags mqmonitor monitoring
  • rabbitmqctl list_users
  • rabbitmqctl cluster_status
  • yum install erlang
  • wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm
  • rpm -ivh rabbitmq-server-3.5.6-1.noarch.rpm
  • vim .erlang.cookie
  • cat .erlang.cookie
  • /etc/init.d/rabbitmq-server start
  • cd /var/log/rabbitmq/
  • tail startup_err
  • tail startup_log
  • chmod 400 .erlang.cookie
  • ll .erlang.cookie
  • /etc/init.d/rabbitmq-server start
  • /etc/init.d/rabbitmq-server status
  • grep 5672 /etc/sysconfig/iptables
  • iptables -L -nv | grep 5672
  • rabbitmqctl stop_app
  • rabbitmqctl join_cluster rabbit@rabbitmq
  • rabbitmqctl start_app
  • rabbitmqctl cluster_status
  • rabbitmq-plugins enable rabbitmq_management
  • rabbitmq-plugins list

原文地址http://soft.dog/2016/01/13/rabbitmq-monitoring/

0 人点赞