In this tutorial, How to install InfluxDB on RHEL / Centos 7. InfluxDB is an open source time series database. It is High availability storage and optimized for fast and metrics analysis.
Install InfluxDB on RHEL / Centos 7
The first, You adding InfluxDB repository to your system using the command as below
[vagrant@DevopsRoles ~]$ sudo vi /etc/yum.repos.d/influxdb.repo
Add the content as below:
[influxdb]
name = InfluxDB Repository
baseurl = https://repos.influxdata.com/rhel/7/x86_64/stable/
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
Install InfluxDB
[vagrant@DevopsRoles ~]$ sudo yum -y install influxdb
Start InfluxDB services on RHEL / Centos 7
[vagrant@DevopsRoles ~]$ sudo systemctl enable influxdb
[vagrant@DevopsRoles ~]$ sudo systemctl start influxdb
To check status InfluxDB is running
[vagrant@DevopsRoles ~]$ sudo systemctl status influxdb
Configure InfluxDB Firewall on RHEL / Centos 7
The default, InfluxDB using TCP port 8086 for client-server communication over HTTP API and TCP port 8088 used for backup and restore.
Open port on the Firewall use command below
[vagrant@DevopsRoles ~]$ sudo firewall-cmd --add-port=8086/tcp --permanent
[vagrant@DevopsRoles ~]$ sudo firewall-cmd --reload
Configure InfluxDB http Authentication on RHEL / Centos 7
Enable http authentication
[vagrant@DevopsRoles ~]$ sudo vi /etc/influxdb/influxdb.conf
Add the content as below:
[http]
auth-enabled = true
Restart InfluxDB service.
[vagrant@DevopsRoles ~]$ sudo systemctl restart influxdb
Create a user with an Authentication password
[vagrant@DevopsRoles ~]$ curl -XPOST "http://localhost:8086/query" --data-urlencode "q=CREATE USER \
username WITH PASSWORD 'password' WITH ALL PRIVILEGES"
You need running any Influxdb commands on the terminal with
[vagrant@DevopsRoles ~]$ influx -username 'username' -password 'password'
Example curl command use -u option to specify username and password.
[vagrant@DevopsRoles ~]$ curl -G http://localhost:8086/query -u username:password --data-urlencode "q=SHOW DATABASES"
Check Influxdb service is listening
[vagrant@DevopsRoles ~]$ sudo netstat -nplt | grep 8086

You have Installed InfluxDB on your system.
Your post help me a lot !!! Thanks
Thank your post. I have question. How to Multiple DB Influxdb for Telegraf for Monitoring?