Installing InfluxDB on Ubuntu
Introduction to InfluxDB
InfluxDB is an open-source time-series database developed by InfluxData, focusing on high-performance reads, high-performance writes, efficient storage, and real-time analysis of massive time-series data. It ranks first in the DB-Engines Ranking of time-series databases and is widely used in scenarios such as DevOps monitoring, IoT monitoring, and real-time analysis.
InfluxDB Installation
1. Download and Install
Open the official documentation link below and follow the official commands to install:
Install InfluxDB | InfluxDB OSS 2.7 Documentation (influxdata.com)

Follow the official documentation prompts to enter the commands:
root@jyjb3:/usr/local/src/influx# wget https://dl.influxdata.com/influxdb/releases/influxdb2-2.7.0-amd64.deb
--2023-08-25 01:59:25-- https://dl.influxdata.com/influxdb/releases/influxdb2-2.7.0-amd64.deb
Resolving dl.influxdata.com (dl.influxdata.com)... 18.154.144.85, 18.154.144.22, 18.154.144.53
Connecting to dl.influxdata.com (dl.influxdata.com)|18.154.144.85|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 45874494 (44M) [application/vnd.debian.binary-package]
Saving to: ‘influxdb2-2.7.0-amd64.deb’
influxdb2-2.7.0-amd64.deb 100%[================================================================================================================================================================>] 43.75M 11.2MB/s in 5.0s
2023-08-25 01:59:32 (8.79 MB/s) - ‘influxdb2-2.7.0-amd64.deb’ saved [45874494/45874494]
root@jyjb3:/usr/local/src/influx# sudo dpkg -i influxdb2-2.7.0-amd64.deb
Selecting previously unselected package influxdb2.
(Reading database ... 175305 files and directories currently installed.)
Preparing to unpack influxdb2-2.7.0-amd64.deb ...
Unpacking influxdb2 (2.7.0-1) ...
Setting up influxdb2 (2.7.0-1) ...
Created symlink /etc/systemd/system/influxd.service → /lib/systemd/system/influxdb.service.
Created symlink /etc/systemd/system/multi-user.target.wants/influxdb.service → /lib/systemd/system/influxdb.service.
2. Start InfluxDB

root@jyjb3:/usr/local/src/influx# sudo service influxdb start
root@jyjb3:/usr/local/src/influx# sudo service influxdb status
● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-08-25 02:13:31 UTC; 18s ago
Docs: https://docs.influxdata.com/influxdb/
Process: 291841 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS)
Main PID: 291849 (influxd)
Tasks: 11 (limit: 38354)
Memory: 47.9M
CGroup: /system.slice/influxdb.service
└─291849 /usr/bin/influxd
Aug 25 02:13:31 jyjb3 influxd-systemd-start.sh[291849]: ts=2023-08-25T02:13:31.519902Z lvl=info msg="Open store (end)" log_id=0jrcKvkl000 service=storage-engine service=store op_name=tsdb_open op_event=end op_elapsed=0.055ms
Aug 25 02:13:31 jyjb3 influxd-systemd-start.sh[291849]: ts=2023-08-25T02:13:31.519928Z lvl=info msg="Starting retention policy enforcement service" log_id=0jrcKvkl000 service=retention check_interval=30m
Aug 25 02:13:31 jyjb3 influxd-systemd-start.sh[291849]: ts=2023-08-25T02:13:31.519935Z lvl=info msg="Starting precreation service" log_id=0jrcKvkl000 service=shard-precreation check_interval=10m advance_period=30m
Aug 25 02:13:31 jyjb3 influxd-systemd-start.sh[291849]: ts=2023-08-25T02:13:31.520554Z lvl=info msg="Starting query controller" log_id=0jrcKvkl000 service=storage-reads concurrency_quota=1024 initial_memory_bytes_quota_per_query=9223372036854775807 memory_bytes_quota>Aug 25 02:13:31 jyjb3 influxd-systemd-start.sh[291849]: ts=2023-08-25T02:13:31.522728Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0jrcKvkl000 max_select_point=0 max_select_series=0 max_select_buckets=0
Aug 25 02:13:31 jyjb3 influxd-systemd-start.sh[291849]: ts=2023-08-25T02:13:31.527081Z lvl=info msg=Starting log_id=0jrcKvkl000 service=telemetry interval=8h
Aug 25 02:13:31 jyjb3 influxd-systemd-start.sh[291849]: ts=2023-08-25T02:13:31.527113Z lvl=info msg=Listening log_id=0jrcKvkl000 service=tcp-listener transport=http addr=:8086 port=8086
Aug 25 02:13:31 jyjb3 influxd-systemd-start.sh[291892]: Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
Aug 25 02:13:31 jyjb3 influxd-systemd-start.sh[291841]: InfluxDB started
Aug 25 02:13:31 jyjb3 systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
lines 1-21/21 (END)