[root@controller ~]# /usr/lib/rabbitmq/bin/rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
mochiweb
webmachine
rabbitmq_web_dispatch
amqp_client
rabbitmq_management_agent
rabbitmq_management
Applying plugin configuration to rabbit@controller… failed.
* Could not contact node rabbit@controller.
Changes will take effect at broker restart.
* Options: –online – fail if broker cannot be contacted.
–offline – do not try to contact broker.
【从提醒信息看是不成功的,不能把配置添加到我的controller上面。所以需要开启节点。】
[root@controller ~]# rabbitmqctl start_app
Starting noderabbit@controller…
[root@controller ~]# rabbitmq-plugins enable rabbitmq_management
Plugin configuration unchanged.
Applying pluginconfigurationtorabbit@controller… started 6 plugins.
这样,就可以了,
之后,就可以去访问RabbitMQ web界面
通过这个界面,我们能很直观的看到rabbitmq的运行和负载情况