S-JIS[2024-03-10/2024-04-01] 変更履歴

WildFly31

WildFly31はJakarta EE 10準拠


インストール

WildFlyのインストールは、ダウンロードサイトからアーカイブ (WildFly Distribution)をダウンロードして展開するだけ。

zipまたはtar.gzファイルを解凍するとwildfly-31.0.1.Finalというディレクトリーが出来る。


管理ユーザーの作成

管理コンソール(ウェブ画面)を使うためには、そこにログインするためのユーザーを作る必要がある。

ユーザーを作るには、wildfly-31.0.1.Final/binの下のadd-user.bat(Windowsの場合)またはadd-user.sh(Linuxの場合)を実行する。

wildfly-31.0.1.Final\bin> add-user.bat

What type of user do you wish to add?
 a) Management User (mgmt-users.properties)
 b) Application User (application-users.properties)
(a): a

Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : admin
User 'admin' already exists and is disabled, would you like to...
 a) Update the existing user password and roles
 b) Enable the existing user
 c) Type a new username
(a): a
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)[  ]:
Updated user 'admin' to file 'C:\wildfly-31.0.1.Final\standalone\configuration\mgmt-users.properties'
Updated user 'admin' to file 'C:\wildfly-31.0.1.Final\domain\configuration\mgmt-users.properties'
Updated user 'admin' with groups  to file 'C:\wildfly-31.0.1.Final\standalone\configuration\mgmt-groups.properties'
Updated user 'admin' with groups  to file 'C:\wildfly-31.0.1.Final\domain\configuration\mgmt-groups.properties'
続行するには何かキーを押してください . . .

スタンドアローンモードの起動・停止

WildFlyのスタンドアローンモードはstandalone.bat(Windowsの場合)あるいはstandalone.sh(Linuxの場合)で起動する。

wildfly-31.0.1.Final\bin> standalone.bat

起動したコンソールはWildFlyで占有される。
終了させるにはCtrl+Cを押す。

システムプロパティーの設定方法


管理コンソール

スタンドアローンモードを開始すると、ウェブブラウザーから管理コンソールにアクセスできる。
デフォルトでは、URLはhttp://localhost:9990
(ポート番号はwildfly-31.0.1.Final/configuration/standalone.xmlで定義されている)

ログインするためにユーザー・パスワードが必要。
ユーザーはadd-userで作成する。


WildFlyへ戻る / 技術メモへ戻る
メールの送信先:ひしだま