How to install InfluxDB on Ubuntu 22.04

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

Hello, friends. In this post, you will learn how to install InfluxDB on Ubuntu 22.04 The process is simple but can open many doors for the cloud.

What is InfluxDB?

It is a time series database designed for fast, highly available storage and retrieval of time series data. It is characterized by being quite flexible and having connectors for many. Moreover, it can run as a standalone solution, or it can be used to process Graphite data.

InfluxDB focuses on storing large amounts of scientific and sensor data. Therefore, InfluxDB is much faster than conventional databases when it comes to storing and managing time series.

As you can notice, the application is critical in specific segments that differ from normal SQL.

Let’s start.

Install InfluxDB on Ubuntu 22.04

First, open a terminal or login to your server and update it

sudo apt update
sudo apt upgrade

Then, we can get started. In this post, we will use the official InfluxDB repositories for our purpose. This is the best way to do it because it guarantees stability, and security.

So, add the GPG key of it

sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -

Now add the repository to the system

echo "deb https://repos.influxdata.com/ubuntu jammy stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

Refresh APT

sudo apt update

And finally install InfluxDB by running the following command

sudo apt install influxdb2
Install InfluxDB on Ubuntu 22.04
Install InfluxDB on Ubuntu 22.04

Now you can start it and enable it simultaneously with the command

sudo systemctl enable --now influxdb

Then, you can check the status of the service.

sudo systemctl status influxdb
InfluxDB status
InfluxDB status

With this, we will know that InfluxDB is working correctly.

Create InfluxDB Database

The next step is to create a new database for InfluxDB. This way, you will be able to start using it.

To do so, use the InfluxDB utility

influx setup
Creating a new database with InfluxDB
Creating a new database with InfluxDB

During the execution of the command, you will be asked for information about the configuration to use. This will be located in /home/user/.influxdbv2/configs
so, you can change it.

By entering your credentials in the login screen, you will be able to access the dashboard.

Conclusion

InfluxDB is a wonderful application that is important in hundreds of large projects. I hope you liked the post.

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"
Angelo
Angelo
I am Angelo. A systems engineer passionate about Linux and all open-source software. Although here I'm just another member of the family.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook