INFLUXDB installation Configuration

Source: Internet
Author: User
Tags influxdb

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.