当前位置:   article > 正文

Centos7安装Rabbitmq_socat 被 rabbitmq-server-3.6.10-1.el7.noarch 需要

socat 被 rabbitmq-server-3.6.10-1.el7.noarch 需要

一、下载安装包

               RabbitMq需要erlang配合,所以需要安装Rabbitmq-server和erlang

wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.0/rabbitmq-server-3.5.0-1.noarch.rpm
wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm

 

如果未安装erlang则安装rabbitmq的时候会提示:

                  erlang >= R16B-03 被 rabbitmq-server-3.6.6-1.el7.noarch 需要
              
二、安装
             

  1. rpm -ivh erlang-19.04-1.e17.centos.x86_64.rpm
  2. rpm -ivh rabbitmq-server-3.5.0-1.noarch.rpm

提示:socat 被 rabbitmq-server-3.6.6-1.el7.noarch 需要  

用yum 来自动安装rabbitmq 因为它能解析依赖关系

yum install rabbitmq-server-3.6.6-1.el7.noarch.rpm
  1. 正在解决依赖关系
  2. --> 正在检查事务
  3. ---> 软件包 rabbitmq-server.noarch.0.3.6.6-1.el7 将被 安装
  4. --> 正在处理依赖关系 socat,它被软件包 rabbitmq-server-3.6.6-1.el7.noarch 需要
  5. Loading mirror speeds from cached hostfile
  6. * base: mirrors.163.com
  7. * extras: mirrors.163.com
  8. * updates: mirrors.163.com
  9. --> 正在检查事务
  10. ---> 软件包 socat.x86_64.0.1.7.2.2-5.el7 将被 安装
  11. --> 解决依赖关系完成
  12. 依赖关系解决

这里就自动安装了socat

 
三、检查安装

rabbitmqctl -q status
  1. {pid,28842},
  2. {running_applications,[{rabbit,"RabbitMQ","3.6.6"},
  3. {rabbit_common,[],"3.6.6"},
  4. {os_mon,"CPO CXC 138 46","2.4.1"},
  5. {mnesia,"MNESIA CXC 138 12","4.14"},
  6. {ranch,"Socket acceptor pool for TCP protocols.",
  7. "1.2.1"},
  8. {xmerl,"XML parser","1.3.11"},
  9. {sasl,"SASL CXC 138 11","3.0"},
  10. {stdlib,"ERTS CXC 138 10","3.0.1"},
  11. {kernel,"ERTS CXC 138 10","5.0.1"}]},
  12. {os,{unix,linux}},
  13. {erlang_version,"Erlang/OTP 19 [erts-8.0.3] [source] [64-bit] [smp:8:8] [async-threads:128] [hipe] [kernel-poll:true]\n"},
  14. {memory,[{total,43903536},
  15. {connection_readers,0},
  16. {connection_writers,0},
  17. {connection_channels,0},
  18. {connection_other,0},
  19. {queue_procs,2832},
  20. {queue_slave_procs,0},
  21. {plugins,0},
  22. {other_proc,13512328},
  23. {mnesia,60376},
  24. {mgmt_db,0},
  25. {msg_index,51984},
  26. {other_ets,952272},
  27. {binary,13800},
  28. {code,17680793},
  29. {atom,752561},
  30. {other_system,10876590}]},
  31. {alarms,[]},
  32. {listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
  33. {vm_memory_high_watermark,0.4},
  34. {vm_memory_limit,1191454310},
  35. {disk_free_limit,50000000},
  36. {disk_free,9430753280},
  37. {file_descriptors,[{total_limit,924},
  38. {total_used,2},
  39. {sockets_limit,829},
  40. {sockets_used,0}]},
  41. {processes,[{limit,1048576},{used,144}]},
  42. {run_queue,0},
  43. {uptime,1116},
  44. {kernel,{net_ticktime,60}}]

四、打开和关闭服务

打开服务:

service rabbitmq-server start
Redirecting to /bin/systemctl start  rabbitmq-server.service


关闭服务:

# service rabbitmq-server stop
Redirecting to /bin/systemctl stop  rabbitmq-server.service


查看所有队列信息
 # rabbitmqctl list_queues
关闭应用
 # rabbitmqctl stop_app
启动应用,和上述关闭命令配合使用,达到清空队列的目的
 # rabbitmqctl start_app
清除所有队列
 # rabbitmqctl reset
更多用法及参数,可以执行如下命令查看
 # rabbitmqctl查看所有队列信息
 # rabbitmqctl list_queues
关闭应用
 # rabbitmqctl stop_app
启动应用,和上述关闭命令配合使用,达到清空队列的目的
 # rabbitmqctl start_app
清除所有队列
 # rabbitmqctl reset
更多用法及参数,可以执行如下命令查看
 # rabbitmqctl查看所有队列信息
 # rabbitmqctl list_queues


关闭应用
 # rabbitmqctl stop_app

启动应用,和上述关闭命令配合使用,达到清空队列的目的
 # rabbitmqctl start_app

清除所有队列
 # rabbitmqctl reset

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/正经夜光杯/article/detail/956340
推荐阅读
相关标签
  

闽ICP备14008679号