【问题标题】:Cannot connect to influxd by influx CLI tool无法通过 influx CLI 工具连接到 influxd
【发布时间】:2020-11-26 08:23:24
【问题描述】:

我在我的 CentOS 8.2 服务器中安装了 influx。

[root@dele opt]# influxd version
InfluxDB 2.0.2 (git: 84496e507a) build_date: 2020-11-19T03:59:35Z
[root@dele opt]# influx version
Influx CLI 2.0.2 (git: 84496e507a) build_date: 2020-11-19T03:59:35Z

我开始涌入:

influxd &

它在 8086 上听。

tcp6       0      0 :::8086                 :::*                    LISTEN 

但我无法连接到 influxd:

[root@fastnetmon opt]# influx -host localhost -p 8086
Error: unknown shorthand flag: 'o' in -ost
See 'influx -h' for help
[root@fastnetmon opt]# influx --host localhost --p 8086
Error: unknown flag: --host
See 'influx -h' for help

也不是通过命令:

[root@dele opt]# /usr/bin/influx -precision rfc3339
Error: unknown shorthand flag: 'p' in -precision

【问题讨论】:

    标签: influxdb influxdb-2


    【解决方案1】:

    经过一段时间的努力,我验证了2.0版本不支持这些命令。
    如果是 2.0 版本,您可以在“数据资源管理器部分”的 influxdb 中执行查询。在 2.0 版本中,您拥有类似于数据库的存储桶,您可以通过 cli 创建它们,如下例所示:

    influx bucket create -n <bucketname> --org-id <Organisation ID> -r 10h -t <your token>
    

    令牌是从 influxdb 的主页生成的,您可以从此主页访问 InfluxDB 2.0 实例的每个部分。
    您可以从这里访问您的组织、仪表板和文档。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-02
      • 1970-01-01
      • 2021-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多