Lua 常见问题

 _fetch_metadata(): all brokers failed in fetch topic metadata, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"

出现这个问题的原因是因为 nginx使用的域名配置不是系统自身的,而是它本身配置的  

you need to configuration resolver dns , because the nginx execute resolve by itself and not system resolve

在nginx.conf中添加如下配置 :

resolver xx.xxx.xx.xxx ; 
xx.xxx.xx.xxx配置的是域名服务器的地址

系统自身的域名服务器配置

cat /etc/resolv.conf



 
  




你可能感兴趣的:(Lua)