1:修改/etc/influxdb/influxdb.conf 文件
开启如下选项
enabled = true
auth-enabled = true
2: 登录到influx ,添加管理员用户(密码不能有“!@#$%^&*()-”这些符号,并且用单引号括起来)
create user admin with password 'XXXXXX' with all privileges;
create user noAdmin with password 'XXXXX';
3:重启influxdb 服务
systemctl restart influxd