commit d9e18c27ff58aec04a901089846c4ee560680c01 Author: douxu Date: Thu Aug 15 14:22:56 2024 +0800 添加 Home diff --git a/Home.md b/Home.md new file mode 100644 index 0000000..a6f51bf --- /dev/null +++ b/Home.md @@ -0,0 +1,21 @@ +# InfluxDB UI Dashboard使用 + +## InfluxDB 启动 + +使用` docker start -d --name influxdb -p 27017:27017 influxdb:2.7.8`启动InfluxDB 容器 + +## InfluxDB 认证 + +使用`influx auth create [permission-flags]`命令创建令牌。 + +### 创建令牌 + +1. `influx auth create --all-access`创建 All-access令牌 +2. `influx auth create --read-bucket bucketID --write-bucket bucketID` 创建指定桶 ID 的读写权限令牌 + +### 查看令牌 +使用`influx auth list` 命令来查看相关令牌详情 + +### 401 Unauthorized认证解决方案 +使用`influx config create --config-name CONFIG_NAME --host_url HOST_URL --org ORG --token API_TOKEN --active`创建认证配置 +