Ubuntu 22.04 LTSにGlancesシステムモニターをインストールする方法

環境
OSバージョンを確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"
# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"

Glancesのインストール手順
1.システムOSとパッケージを更新します。

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

2.Glances監視モニターをインストールします

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

3.Glancesバージョンを確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# glances --version
Glances v3.2.4.2 with PsUtil v5.9.0
Log file: /root/.local/share/glances/glances.log
# glances --version Glances v3.2.4.2 with PsUtil v5.9.0 Log file: /root/.local/share/glances/glances.log
# glances --version
Glances v3.2.4.2 with PsUtil v5.9.0
Log file: /root/.local/share/glances/glances.log

4.Glancesのステータスを確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# systemctl status glances
● glances.service - Glances
Loaded: loaded (/lib/systemd/system/glances.service; enabled; vendor prese>
Active: active (running) since Fri 2022-06-03 23:23:10 JST; 15min ago
# systemctl status glances ● glances.service - Glances Loaded: loaded (/lib/systemd/system/glances.service; enabled; vendor prese> Active: active (running) since Fri 2022-06-03 23:23:10 JST; 15min ago
# systemctl status glances
● glances.service - Glances
     Loaded: loaded (/lib/systemd/system/glances.service; enabled; vendor prese>
     Active: active (running) since Fri 2022-06-03 23:23:10 JST; 15min ago

Glances自動起動を設定します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo systemctl enable glances --now
Synchronizing state of glances.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable glances
# sudo systemctl enable glances --now Synchronizing state of glances.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable glances
# sudo systemctl enable glances --now
Synchronizing state of glances.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable glances

 

Ubuntu 22.04

Posted by arkgame