INFLUXDB installation Configuration
Os:centos 7 x64
1. Installation:
See also: https://www.influxdata.com/package-repository-for-linux/
Cat <<eof | Tee/etc/yum.repos.d/influxdb.repo
[Influxdb]
name = InfluxDB Repository-rhel \ $releasever
BaseURL = https://repos.influxdata.com/centos/\ $releasever/\ $basearch/stable
Enabled = 1
Gpgcheck = 1
Gpgkey = Https://repos.influxdata.com/influxdb.key
Eof
Yum Install Influxdb
2, change the configuration
Configure with reference to influxdb_diff/* differences
where auth-enabled = False is the control of whether a password is required to access. At the beginning set to False, restart Influxdb, follow the CREATE database below, set the reserved side road, create the user, add all permissions to the library. Then set to True, restart Influxdb, and then use the user password just to access
3. Start boot
Yum Enable Influxdb
Yum Start Influxdb
4. Create a database settings retention policy
CREATE DATABASE influx_mf_log with DURATION 30d REPLICATION 1 name Rp30d1r_influx_mf_log;
show retention policies;
5. Create user settings to access all permissions of the library
#non Admin User:?
CREATE USER Influx_user0 with PASSWORD ' Your_pass ';
GRANT all on influx_db to Influx_user0;
#admin User:?
CREATE USER influx_user1 with PASSWORD ' your_pass ' and all privileges;
6, the command line access
Influx-host ' 192.168.100.41 '-port ' 8086 '-username ' Influx_user0 "-password ' your_pass '-database ' influx_db '
Influx-host ' 192.168.100.41 '-port ' 8086 '-username ' influx_user1 "-password ' your_pass '-database ' influx_db '
INFLUXDB installation Configuration