サーバー管理 · 2 min read · Nov 01, 2025
Ubuntu 18.04にAjentiコントロールパネルをインストールする方法
Ajentiは、ウェブベースのインターフェースからサーバーを管理するために使用できる無料のオープンソースで軽量なコントロールパネルです。Ajentiを使用すると、DNS、ウェブサイト、ファイアウォール、メール、ファイルサーバー、ログなどを簡単に管理できます。AjentiはPythonで書かれており、非常に少ないリソースを必要とし、多くのLinuxディストリビューションと互換性があります。したがって、ウェブベースのインターフェースからサーバーを監視および管理したい場合は、最適な選択肢です。
このチュートリアルでは、Ubuntu 18.04にAjentiコントロールパネルをインストールする方法を説明します。
要件
- Ubuntu 18.04を実行しているサーバー。
- サーバーにルートパスワードが設定されていること。
始めに
始める前に、システムを最新バージョンに更新する必要があります。次のコマンドを実行することでこれを行うことができます:
apt-get update -y
apt-get upgrade -yサーバーが更新されたら、変更を適用するためにサーバーを再起動します。
必要な依存関係のインストール
始める前に、サーバーにpython-imaging依存関係をインストールする必要があります。まず、次のコマンドを使用してpython-imagingパッケージをダウンロードします:
wget http://mirrors.mit.edu/ubuntu-ports/pool/universe/p/pillow/python-imaging_3.1.2-0ubuntu1.1_all.debダウンロードが完了したら、次のコマンドを使用してダウンロードしたパッケージをインストールします:
dpkg -i python-imaging_3.1.2-0ubuntu1.1_all.deb次のエラーが表示されるはずです:
Selecting previously unselected package python-imaging.
(Reading database ... 28634 files and directories currently installed.)
Preparing to unpack python-imaging_3.1.2-0ubuntu1.1_all.deb ...
Unpacking python-imaging (3.1.2-0ubuntu1.1) ...
dpkg: dependency problems prevent configuration of python-imaging:
python-imaging depends on python:any (<< 2.8).
python-imaging depends on python:any (>= 2.7.5-5~).
python-imaging depends on python-pil; however:
Package python-pil is not installed.
dpkg: error processing package python-imaging (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-imaging上記のエラーは、以下のようにpython-imaging依存関係をインストールすることで修正できます:
apt --fix-broken installすべての必要な依存関係がインストールされたら、次のステップに進むことができます。
Ajentiのインストール
デフォルトでは、AjentiはUbuntu 18.04のデフォルトリポジトリにはありません。したがって、Ajentiリポジトリをシステムに追加する必要があります。
まず、次のコマンドを使用してAjentiリポジトリのGPGキーをダウンロードしてインポートします:
wget http://repo.ajenti.org/debian/key -O- | apt-key add -次に、次のコマンドを使用してAjentiリポジトリを追加します:
echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" | tee /etc/apt/sources.list.d/ajenti.list次に、リポジトリを更新し、次のコマンドを使用してAjentiをインストールします:
apt-get update -y
apt-get install ajenti -yインストールが完了すると、次の出力が表示されるはずです:
writing RSA key
:: Generating certificate
Signature ok
subject=C = US, ST = NA, L = Nowhere, O = Acme Inc, OU = IT, CN = ubuntu
Getting Private key
:: SSL configured!
------------------------------------------------
Now start Ajenti with 'service ajenti restart'
Ajenti will listen on HTTPS port 8000 by default
Default username : root
Default password : admin
------------------------------------------------
Processing triggers for python-support (1.0.15) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for systemd (237-3ubuntu10.25) ...他のAjenti Vプラグインも次のコマンドでインストールできます:
apt-get install ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php7.2-fpm php7.2-mysql -yすべてのパッケージがインストールされたら、次のコマンドを使用してAjentiサービスを開始し、ブート時に自動的に開始するように設定します:
systemctl start ajenti
systemctl enable ajenti次のコマンドを使用してAjentiのステータスを確認することもできます:
systemctl status ajenti次の出力が表示されるはずです:
? ajenti.service - LSB: Ajenti
Loaded: loaded (/etc/init.d/ajenti; generated)
Active: active (running) since Tue 2019-09-10 04:57:36 UTC; 3min 35s ago
Docs: man:systemd-sysv-generator(8)
Tasks: 3 (limit: 4915)
CGroup: /system.slice/ajenti.service
??2702 /usr/bin/python /usr/bin/ajenti-panel -d
Sep 10 05:00:32 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:40 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:49 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:49 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:49 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:51 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:51 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:51 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:51 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted
Sep 10 05:00:51 ubuntu systemd[1]: ajenti.service: Failed to reset devices.list: Operation not permitted完了したら、次のステップに進むことができます。
Ajentiウェブインターフェースにアクセス
Ajentiは現在インストールされ、ポート8000でリッスンしています。次のURL https://your-server-ip:8000 にアクセスすることでAjentiウェブインターフェースにアクセスできます。次のページにリダイレクトされます:

管理者のユーザー名とパスワードをroot/adminとして入力し、LOG INボタンをクリックします。次の画面にAjentiダッシュボードが表示されるはずです:

次に、Ajentiのデフォルトの管理者パスワードを変更することをお勧めします。そのためには、左のペインでPasswordをクリックします。次のページが表示されるはずです:

現在のパスワードと新しいパスワードを入力します。次に、SAVEボタンをクリックしてパスワードを更新します。
次に、左のペインでPluginsボタンをクリックして、Linuxサーバーに必要なプラグインをインストールします。次のページが表示されるはずです:

Apacheウェブサーバーを設定したい場合は、Apacheをクリックします。次のページが表示されるはずです:

次に、APACHE2ボタンをクリックして、システムにApacheウェブサーバーパッケージをインストールします。
結論
おめでとうございます!Ubuntu 18.04サーバーにAjentiコントロールパネルを正常にインストールしました。これで、ウェブベースのインターフェースからLinuxサーバー上のさまざまなサービスを簡単にインストールおよび管理できます。詳細については、AjentiのドキュメントをAjenti Docで確認できます。質問があればお気軽にお尋ねください。
新しい投稿を受信箱で受け取る
スパムはありません。いつでも購読を解除できます。