Rocky Linux8.5にサーバー管理ツールAjentiをインストールする

2021年12月8日

OSバージョンの確認

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# cat /etc/redhat-release
Rocky Linux release 8.5 (Green Obsidian)
# cat /etc/redhat-release Rocky Linux release 8.5 (Green Obsidian)
# cat /etc/redhat-release
Rocky Linux release 8.5 (Green Obsidian)

1.リポジトリを追加します
# sudo dnf -y install epel-release

必要なパッケージもインストールします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo dnf install -y gcc python3-devel python3-pip python3-pillow python3-augeas python3-dbus chrony openssl-devel redhat-lsb-core
# sudo dnf install -y gcc python3-devel python3-pip python3-pillow python3-augeas python3-dbus chrony openssl-devel redhat-lsb-core
# sudo dnf install -y gcc python3-devel python3-pip python3-pillow python3-augeas python3-dbus chrony openssl-devel redhat-lsb-core

2.Ajentiをインストールします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh | sudo bash -s
Ajenti will be listening at HTTP port 8000
Log in with your root password or another OS user
# sudo curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh | sudo bash -s 略 Ajenti will be listening at HTTP port 8000 Log in with your root password or another OS user
# sudo curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh | sudo bash -s
略
Ajenti will be listening at HTTP port 8000
Log in with your root password or another OS user

3.Firewallを設定

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo firewall-cmd --permanent --zone=public --add-port=8000/tcp
success
[root@cft notable]# sudo firewall-cmd --reload
success
# sudo firewall-cmd --permanent --zone=public --add-port=8000/tcp success [root@cft notable]# sudo firewall-cmd --reload success
# sudo firewall-cmd --permanent --zone=public --add-port=8000/tcp
success
[root@cft notable]# sudo firewall-cmd --reload
success

4.Ajentiを起動します
ステータスの確認

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo systemctl status ajenti
● ajenti.service - Ajenti panel
Loaded: loaded (/usr/lib/systemd/system/ajenti.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2021-12-08 09:46:10 JST; 1h 15min ago
# sudo systemctl status ajenti ● ajenti.service - Ajenti panel Loaded: loaded (/usr/lib/systemd/system/ajenti.service; enabled; vendor preset: disabled) Active: active (running) since Wed 2021-12-08 09:46:10 JST; 1h 15min ago
# sudo systemctl status ajenti
● ajenti.service - Ajenti panel
Loaded: loaded (/usr/lib/systemd/system/ajenti.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2021-12-08 09:46:10 JST; 1h 15min ago

5.動作確認
ブラウザから http://ipアドレス:8000 にアクセスします

Rocky Linux 8

Posted by arkgame