vim influxdb.conf
- 修改文件内容
[http]
au`th-enabled=true
- 添加(修改)密码
#添加一个管理员用户 修改密码也是一样
create user "root" with password 'root' with all privileges
- 重启influx
systemctl restart influxd
- influxdb中使用用户名密码登录
influx -username root -password mypassword
`