rocketmq 安装和使用常见问题解决


在这里插入图片描述

我用的 docker-compose.yml。

运行 docker-compose.yml 时,error pulling image configuration XXXX x509: certificate has expired or is not yet valid。
可能是虚拟机和宿主机时间不同步导致。


# 查询虚拟机时间
$ date

# 下载
yum install ntpdate

# 同步宿主机时间
ntpdate cn.pool.ntp.org

发送消息时,connect 10911 failed 或 sendDefaultImpl call timeout。
broker.conf 里。可能是 brokerIP1 设置错误,导致 nameserver 连接不上 broker,这里要设置为虚拟机 ip,我看到很多帖子里写的设置为宿主机 ip 是错误的。


# nameServer地址,分号分割,虚拟机 ip + port
namesrvAddr=192.20.10.5:9876

# 设置虚拟机 ip
brokerIP1=192.20.10.5

# broker 对外服务的监听端口
listenPort=10911



版权声明:本文为liu1shi原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。