Installing Influxdb on Centos 8

  • Last update: Apr 3, 2024
  • Views: 45
  • Author: Admin
Installing Influxdb on Centos 8

Hello colleagues.

In today's article I will tell you how to install Inluxdb on Linux. At the moment, the latest version of the Influxdb time series database is 2.1.

InfluxDB is a time series database (TSDB) developed by InfluxData, which has become increasingly popular in recent years. It has become one of the references for engineers wishing to implement real-time monitoring. Influxdb is usually used in conjunction with Grafana. And Telegraf is the client for transferring metrics.

I showed the installation of Grafana in a previous article Installing Grafana on Centos 8

This article is suitable for system administrators, engineers and developers.

 

The content of the article:

  1. About the Server.
  2. Adding the Influxdb repository.
  3. Install Influxdb.
  4. Open the Influxdb port on the Firewall.
  5. We start Influxdb.
  6. Open web interface in browser.

 

1. About the Server.

In today's article, I will be using Centos 8.

IP: 192.168.2.225


 

2. Adding the Influxdb Repository

Since Influxdb is not shipped with Centos 8 by default, we need to add the Influxdb repository. To do this, create a file influxdb.repo in the /etc/yum.repos.d directory

$. sudo vim /etc/yum.repos.d/influxdb.repo

Add to file:

[influxdb]
name = InfluxDB Repository - RHEL $releasever
baseurl = https://repos.influxdata.com/rhel/$releasever/$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key

After we save the file and exit.


 

3. Install Influxdb.

After adding the Influxdb repository, you can proceed to install Influxdb. To install, use the command:

$. sudo yum install influxdb2

We agree and install.


 

4.Open the Influxdb port on the Firewall.

After installing Influxdb, you need to open port 8086 to access the web interface.

$. sudo firewall-cmd --zone=public --add-port=8086/tcp --permanent
$. sudo firewall-cmd --reload


 

5. We start Influxdb.

To start Influxdb use the command:

$. sudo service influxdb start


 

6. Open the web interface in the browser.

After installation and launch, it's time to test how it works in the browser. In the browser, enter the address in my case 192.168.2.225:8086

HOORAY! Earned.

Then it will ask you to fill out a simple form with a username and password for subsequent authorization and that's it.

Click Continue.

READY!


 

Thank you all, I hope my article was of some help to you.

SIMILAR ARTICLES

InfluxDB how to create a database
Installing Grafana on Centos 8
InfluxDB authentication and authorization