[meta]
# Where the metadata/raft database is stored
dir ="/home/dev5/tools/influxdb-1.7.8/influx/meta"[data]
# The directory where the TSM storage engine stores TSM files.
dir ="/home/dev5/tools/influxdb-1.7.8/influx/dat"
# The directory where the TSM storage engine stores WAL files.
wal-dir ="/home/dev5/tools/influxdb-1.7.8/influx/wal"
[dev5@7bdc6644c7c4 influxdb-1.7.8]$ exportPATH=/home/dev5/tools/influxdb-1.7.8/usr/bin:$PATH[dev5@7bdc6644c7c4 influxdb-1.7.8]$ influx
Connected to http://localhost:8086 version 1.7.8
InfluxDB shell version:1.7.8> create user admin with password 'deadbeef'with all privileges
> create user "x-msg-im"with password 'deadbeef'with all privileges
> exit
使能鉴权: vim etc/influxdb/influxdb.conf
[http]
# Determines whether HTTP endpoint is enabled.
# enabled =true
# The bind address used by the HTTP service.
# bind-address =":8086"
# Determines whether user authentication is enabled over HTTP/HTTPS.
auth-enabled =true
# Whether queries should be logged before execution. Very useful for troubleshooting, but will
# log any sensitive data contained within a query.
# query-log-enabled =true
query-log-enabled =false