添加 Home

douxu 2024-08-15 14:22:56 +08:00
commit d9e18c27ff
1 changed files with 21 additions and 0 deletions

21
Home.md Normal file

@ -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`创建认证配置