rabbitmq配置踩坑记录

根据官网描述,在

/etc/rabbitmq

目录下创建

rabbitmq.conf

文件(==此处是坑==)。经过验证发现配置未生效。

经过检查发现:

/var/log/rabbitmq/rabbit\@localhost.log

日志中:

=INFO REPORT==== 4-Jun-2018::01:26:12 ===
node           : rabbit@localhost
home dir       : /root
config file(s) : (none)
cookie hash    : VJKYDPNUXrQ/k5RbpQDEew==
log            : /var/log/rabbitmq/rabbit@localhost.log
sasl log       : /var/log/rabbitmq/rabbit@localhost-sasl.log
database dir   : /var/lib/rabbitmq/mnesia/rabbit@localhost

很明显,配置文件没有加载成功。

原因是服务器的rabbitmq为3.2.3版本,此版本除了配置格式为经典格式外,它的配置文件名还得为.config

知道了原因,修改起来就快了,成功后日志如下:

=INFO REPORT==== 4-Jun-2018::01:40:04 ===
node           : rabbit@localhost
home dir       : /root
config file(s) : /etc/rabbitmq/rabbitmq.config
cookie hash    : VJKYDPNUXrQ/k5RbpQDEew==
log            : /var/log/rabbitmq/rabbit@localhost.log
sasl log       : /var/log/rabbitmq/rabbit@localhost-sasl.log
database dir   : /var/lib/rabbitmq/mnesia/rabbit@localhost
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,868评论 18 139
  • Spring Boot 参考指南 介绍 转载自:https://www.gitbook.com/book/qbgb...
    毛宇鹏阅读 46,937评论 6 342
  • “历”非“利” “怎样快速成为世界最成功的人”“怎样快速成为世界最有财富的人”“怎样让财富和成功给我们带来...
    孤岛落脚阅读 525评论 1 1
  • 写在前面的话: 如果你衣服只看打折的,好看的贵的一律不买;如果你吃的只要能果腹就行,餐厅的环境无关紧要;如果你...
    NANA0阅读 331评论 1 3
  • 何为变量:存储信息的容器可存储不同数据类型的信息 在JavaScript中定义变量:var,后跟变量名变量名要求:...
    Ashley2333阅读 242评论 0 1