1 RabbitMQ 安装,配置

1:安装
yum install -y rabbitmq-server
 
2:主要程序介绍
# 管理插件的程序
/usr/sbin/rabbitmq-plugins
# 服务程序
/usr/sbin/rabbitmq-server
# 命令行接口程序
/usr/sbin/rabbitmqctl
 
3:获取插件程序的帮助
rabbitmq-plugins --help
list [-v] [-m] [-E] [-e] [<pattern>]
enable <plugin> ...
disable <plugin> ..
 
4:查看可用的插件,E表示:启动的插件,e表示:被依赖启动的插件
rabbitmq-plugins list
[e] amqp_client 3.3.5
[ ] cowboy 0.5.0-rmq3.3.5-git4b93c2d
[ ] eldap 3.3.5-gite309de4
[e] mochiweb 2.7.0-rmq3.3.5-git680dba8
[ ] rabbitmq_amqp1_0 3.3.5
[ ] rabbitmq_auth_backend_ldap 3.3.5
[ ] rabbitmq_auth_mechanism_ssl 3.3.5
[ ] rabbitmq_consistent_hash_exchange 3.3.5
[ ] rabbitmq_federation 3.3.5
[ ] rabbitmq_federation_management 3.3.5
[E] rabbitmq_management 3.3.5
[e] rabbitmq_management_agent 3.3.5
[ ] rabbitmq_management_visualiser 3.3.5
[ ] rabbitmq_mqtt 3.3.5
[ ] rabbitmq_shovel 3.3.5
[ ] rabbitmq_shovel_management 3.3.5
[ ] rabbitmq_stomp 3.3.5
[ ] rabbitmq_test 3.3.5
[ ] rabbitmq_tracing 3.3.5
[e] rabbitmq_web_dispatch 3.3.5
[ ] rabbitmq_web_stomp 3.3.5
[ ] rabbitmq_web_stomp_examples 3.3.5
[ ] sockjs 0.3.4-rmq3.3.5-git3132eb9
[e] webmachine 1.10.3-rmq3.3.5-gite9359c7
 
5:启用管理插件
rabbitmq-plugins enable rabbitmq_management
 
6:启用了新插件,需要重启服务,但是在现在服务没有启动,因此直接启动
# 配置/etc/hosts文件,添加解析地址
192.168.23.10 rabbitmq
# 启动服务
systemctl start rabbitmq-server
 
7:查看服务监听的端口
# rabbitmq监听的端口
:::5672 :::* LISTEN 3989/beam.smp
# rabbitmq_management监听的端口
0.0.0.0:15672 0.0.0.0:* LISTEN 3989/beam.smp
# rabbitmq 集群监听的端口
0.0.0.0:25672 0.0.0.0:* LISTEN 3989/beam.smp
 
8:访问rabbitmq,用户名和密码都是guest
http://192.168.23.10:15672
 
9:通过这个web接口,可以实现对rabbitmq的管理
posted @ 2017-10-28 15:05  ~小学生~  阅读(179)  评论(0编辑  收藏  举报