Skip to content

Instantly share code, notes, and snippets.

@piratecarrot
Created March 17, 2022 04:18
Show Gist options
  • Save piratecarrot/4225ed9f51cdefa2a59faa8a3527829c to your computer and use it in GitHub Desktop.
Save piratecarrot/4225ed9f51cdefa2a59faa8a3527829c to your computer and use it in GitHub Desktop.
Install WildFly on Debian 11
# Guide takend from
# https://computingforgeeks.com/how-to-install-wildfly-jboss-on-debian-linux/
sudo apt update
sudo apt install openjdk-17-jdk
export WILDFLY_RELEASE="26.0.1"
wget https://github.com/wildfly/wildfly/releases/download/${WILDFLY_RELEASE}.Final/wildfly-${WILDFLY_RELEASE}.Final.tar.gz
sudo tar xvf wildfly-${WILDFLY_RELEASE}.Final.tar.gz -C /opt
sudo mv /opt/wildfly-${WILDFLY_RELEASE}.Final /opt/wildfly
sudo groupadd --system wildfly
sudo useradd -s /sbin/nologin --system -d /opt/wildfly -g wildfly wildfly
sudo mkdir /etc/wildfly
sudo cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.service /etc/systemd/system/
sudo cp /opt/wildfly/docs/contrib/scripts/systemd/launch.sh /opt/wildfly/bin/
sudo chmod +x /opt/wildfly/bin/launch.sh
sudo cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.conf /etc/wildfly/
sudo chown -R wildfly:wildfly /opt/wildfly
sudo systemctl daemon-reload
sudo systemctl start wildfly
sudo systemctl enable wildfly
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): a
Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : myadminuser
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 : <Enter Password>
Re-enter Password : <Confirm Password>
What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[ ]:
About to add user 'myadminuser' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'myadminuser' to file '/opt/wildfly/standalone/configuration/mgmt-users.properties'
Added user 'myadminuser' to file '/opt/wildfly/domain/configuration/mgmt-users.properties'
Added user 'myadminuser' with groups to file '/opt/wildfly/standalone/configuration/mgmt-groups.properties'
Added user 'myadminuser' with groups 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 Jakarta Enterprise Beans calls.
yes/no? yes
To represent the user add the following to the server-identities definition <secret value="<WHATEVER>>" />
cat >> ~/.bashrc <<EOF
export WILDFLY_BIN="/opt/wildfly/bin/"
export PATH=\$PATH:\$WILDFLY_BIN
EOF
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment