본문 바로가기

Linux Distributions

How to install the latest version of influxdb on Ubuntu

728x90
반응형

How to install the latest version of influxdb on Ubuntu

Install the latest version of InfluxDB on Ubuntu

 

1. Update the system packages:

sudo apt update

 

2. Import the InfluxDB GPG key:

wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -

 

3. Add the InfluxDB repository to the package manager:

For Ubuntu 22.04:

echo "deb https://repos.influxdata.com/$(lsb_release -si) $(lsb_release -sc) stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

For Ubuntu 20.04:

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

For Ubuntu 18.04:

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

 

4. Update the package manager again:

sudo apt update

 

5. Install InfluxDB:

sudo apt install influxdb

 

6. Start the InfluxDB service:

sudo systemctl start influxdb

 

7. Verify that InfluxDB is running:

sudo systemctl status influxdb

 

Now you have InfluxDB installed on your Ubuntu system. You can access the InfluxDB command-line interface using the influx command.

 

Additionally, you can configure InfluxDB by modifying the /etc/influxdb/influxdb.conf file according to your needs.

 

Please note that the above steps are for installing the latest version of InfluxDB from the official InfluxData repository. Make sure to adjust the repository URL and package manager commands if you are using a different Ubuntu version.

 

728x90
반응형