文档文档

influx config

influx config 命令显示活动的 InfluxDB 连接配置,并管理默认存储在 ~/.influxdbv2/configs 中的多个连接配置。每个连接包括 URL、令牌、关联的组织和活动设置。InfluxDB 从活动连接配置中读取令牌,因此您无需手动输入令牌即可登录 InfluxDB。

用法

influx config [flags]
influx config [command]
influx config <config-name>
快速切换配置
# Syntax
influx config <config-name>

# Example
influx config local-config

要快速切换回上一个配置,请使用以下命令

influx config -

示例

# Show the active connection configuration
influx config

# Set a connection configuration as active
influx config local-config

子命令

子命令描述
create创建连接配置
list列出连接配置
delete删除连接配置
set设置或更新连接配置

标志

标志描述
-h--helpconfig 命令的帮助

此页内容是否有帮助?

感谢您的反馈!


Flux 的未来

Flux 即将进入维护模式。您可以继续像现在一样使用它,无需更改任何代码。

阅读更多

现已全面上市

InfluxDB 3 Core 和 Enterprise

快速启动。更快扩展。

获取更新

InfluxDB 3 Core 是一个开源、高速、近实时数据引擎,可实时收集和处理数据,并将其持久化到本地磁盘或对象存储。InfluxDB 3 Enterprise 构建在 Core 的基础上,增加了高可用性、读取副本、增强的安全性以及数据压缩功能,以实现更快的查询和优化的存储。InfluxDB 3 Enterprise 的免费层可供非商业家庭或业余爱好者使用。

有关更多信息,请查看