For the uninitiated, InfluxDB is an open-source, time series database written in Go that is optimized for fast, high availability of storage and retrieval of time series data sets such as monitoring, analytics, metrics, and others. If you’re looking for an open-source time series database that is optimized for speed, then InfluxDB is a great place to start. If you’re a student or a new user, you will find out that the easiest place to start learning Linux is on Ubuntu Linux OS. It’s a great Linux operating system for beginners. Ubuntu is an open-source Linux operating system that runs on desktops, laptops, servers, and other devices. To get started with installing InfluxDB, follow the steps below:
Install InfluxDB
There are multiple ways to install InfluxDB on Ubuntu. However, the easiest and fastest way is to install it from its official repository. To do that, run the commands below to add its repository key to Ubuntu After adding the key, run the commands below to create a repository file When you’re done adding the repository key and file, run the commands below to update the Ubuntu packages index and install InfluxDB After installing, the commands below can be used to stop, start and enable InfluxDB services to automatically start up when the server boots. To check and validate that InfluxDB is installed and running, run the status command below: That should display similar lines as shown below:
Configure InfluxDB
By default, the InfluxDB configuration file is under /etc/influxdb/influxdb.conf. Many of its configurations are commented out and not used. Go and make changes to the configuration file that suits your environment. When you’re done, save the file and exit. For example, to allow HTTP authentication, enable the line under [http] as shown in the file below: Edit the line shown and save. Restart InfluxDB after making changes to its configuration file. You can now create an admin account using the commands below: Replace superadmin and type_password_here with username and password for the account. Now that you’ve created an admin account, you can access the InfluxDB terminal console by running the commands below: That should log on to the console. By default, it communicates on port 8086. You can use curl to run queries. For example, to list databases, run the curl commands below: That’s how to install InfluxDB on Ubuntu Conclusion: This post showed you how to install InfluxDB on Ubuntu. If you find any error above, please use the comment form below to report. Thanks, You may also like the post below: