单独部署taosadapter(taosadapter和taosd部署在不同服务器),如何配置?

taosadapter和taosd部署在不同的服务器上,该如何为taosadapter配置taosd地址,看官网没有找到相关配置描述,尝试许久还是无法连接远端。

taosadapter 所在机器上 taos.cfg 中配置对应 taosd 的地址即可。

taosadapter.toml 中 参数 taosConfigDir 是指定 taos.cfg 的路径。

版本3.3.6.13 在taosadapter所在机器的taos.cfg 配置了对应的firstEp, fqdn, serverPort, 仍无法访问远端,使用 taos -h -p 可以确认远端是正常的。

需要将 firstEp 的 fqdn 和 对应的ip 地址 配置到 /etc/hosts中。