インストールガイド · 1 min read · Dec 19, 2025
Ubuntu 18.04にWildFly(JBoss)Javaアプリケーションサーバーをインストールする方法

WildFly、以前はJBossとして知られていたものは、Javaで書かれた無料でオープンソースのアプリケーションサーバーで、Java Enterprise Edition(Java EE)仕様を実装しています。WindowsやLinuxを含む複数のプラットフォームで動作します。WildFlyはWebソケットをサポートしており、アプリケーションが最適化されたカスタムプロトコルとバックエンドインフラストラクチャとの全二重通信を使用できるようにします。
このチュートリアルでは、Ubuntu 18.04 LTSにWildFlyアプリケーションサーバーをインストールする方法を説明します。
要件
- Ubuntu 18.04サーバーを実行しているサーバー。
- sudo権限を持つ非rootユーザー。
- サーバーに設定された静的IPアドレス192.168.0.235。
Javaのインストール
WildFlyはJavaで書かれているため、システムにJavaをインストールする必要があります。次のコマンドを実行してJavaをインストールできます。
sudo apt-get install default-jdk -yJavaがインストールされたら、次のコマンドを使用してJavaのバージョンを確認できます。
java -version出力:
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2, mixed mode)
WildFlyのインストール
まず、公式ウェブサイトからWildFlyの最新バージョンをダウンロードする必要があります。次のコマンドを使用してダウンロードできます。
wget http://download.jboss.org/wildfly/14.0.1.Final/wildfly-14.0.1.Final.tar.gzダウンロードが完了したら、次のコマンドを使用してダウンロードしたファイルを抽出します。
cd /opt
tar -xvzf wildfly-14.0.1.Final.tar.gz
sudo mv wildfly-14.0.1.Final wildflyデフォルトでは、WildFlyサーバーは127.0.0.1にバインドされているため、127.0.0.1を使用してのみアクセスできます。LANのどこからでもWildFlyに接続したい場合は、バインドされたアドレスをサーバーのIPに変更する必要があります。次のようにstandalone.xmlファイルを編集することでこれを行えます。
sudo nano /opt/wildfly/standalone/configuration/standalone.xml次の行を変更します。
${jboss.bind.address:192.168.0.235}
ファイルを保存して閉じます。
次に、管理コンソールにアクセスするためのユーザーを追加する必要があります。次のスクリプトを実行してユーザーを追加できます。
sudo /opt/wildfly/bin/add-user.sh以下のようにすべての質問に答えます。
What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a):
Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : wildflyadmin
Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.
- The password should be different from the username
- The password should not be one of the following restricted values {root, admin, administrator}
- The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
Password :
Re-enter Password :
What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[ ]: wildfly
About to add user 'wildflyadmin' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'wildflyadmin' to file '/opt/wildfly/standalone/configuration/mgmt-users.properties'
Added user 'wildflyadmin' to file '/opt/wildfly/domain/configuration/mgmt-users.properties'
Added user 'wildflyadmin' with groups wildfly to file '/opt/wildfly/standalone/configuration/mgmt-groups.properties'
Added user 'wildflyadmin' with groups wildfly to file '/opt/wildfly/domain/configuration/mgmt-groups.properties'
Is this new user going to be used for one AS process to connect to another AS process?
e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.
yes/no? yes
To represent the user add the following to the server-identities definition
WildFlyコンソールにアクセス
WildFlyコンソールにアクセスする前に、wildflyインスタンスを起動する必要があります。次のコマンドを使用して起動できます。
sudo sh /opt/wildfly/bin/standalone.sh上記のコマンドはwildflyインスタンスを起動します。
次に、ウェブブラウザを開き、URL http://192.168.0.235:8080 を入力します。WildFlyのデフォルトページにリダイレクトされます。

管理コンソールにアクセスするには、ウェブブラウザを開き、URL http://192.168.0.235:9990 を入力します。次のページにリダイレクトされます。

WildFlyのログイン資格情報を入力し、OKボタンをクリックします。次のページにWildFly管理コンソールのダッシュボードが表示されるはずです。

リンク
新しい投稿を受信箱で受け取る
スパムはありません。いつでも購読を解除できます。