Debian 11.2にInfluxDBをインストールする

環境情報
OSのバージョン
# cat /etc/debian_version
11.2

InfluxDBのインストールの方法
1.パッケージをアップデートします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo apt update
# sudo apt update
# sudo apt update

2.依存パッケージをインストールします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo apt install -y gnupg2 curl wget
# sudo apt install -y gnupg2 curl wget
# sudo apt install -y gnupg2 curl wget

3.InfluxDBリポジトリを追加します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
# echo "deb https://repos.influxdata.com/debian buster stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
deb https://repos.influxdata.com/debian buster stable
# wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add - Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). OK # echo "deb https://repos.influxdata.com/debian buster stable" | sudo tee /etc/apt/sources.list.d/influxdb.list deb https://repos.influxdata.com/debian buster stable
# wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
# echo "deb https://repos.influxdata.com/debian buster stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
deb https://repos.influxdata.com/debian buster stable

4.influxdbをインストールします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo apt update
# sudo apt install -y influxdb
# sudo apt update # sudo apt install -y influxdb
# sudo apt update
# sudo apt install -y influxdb

influxdbの自動起動を設定します
# sudo systemctl enable –now influxdb

5.influxdbのステータスを確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# systemctl status influxdb
● 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 2021-12-24 16:21:34 JST; 35s ago
# systemctl status influxdb ● 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 2021-12-24 16:21:34 JST; 35s ago
# systemctl status influxdb
● 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 2021-12-24 16:21:34 JST; 35s ago

influxdbの停止
# systemctl stop influxdb
influxdbの起動
# systemctl start influxdb
influxdbの再起動
# systemctl restart influxdb

6.InfluxDBのバージョン確認

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# influxd version
InfluxDB v1.8.10 (git: 1.8 688e697c51fd)
# influxd version InfluxDB v1.8.10 (git: 1.8 688e697c51fd)
# influxd version
InfluxDB v1.8.10 (git: 1.8 688e697c51fd)

 

Debian 11

Posted by arkgame