How to Install WildFly Java Application Server with Nginx on Ubuntu 22.04

preview_player
Показать описание
Wildfly is a simple, lightweight, and flexible application runtime used to build Java applications. It is written in Java and can run on Linux, macOS, and Windows operating systems. It is an enterprise and fully featured application server that provides all the necessary features to run a Java web application.

This video will show you how to install Wildfly with Nginx as a reverse proxy on Ubuntu 22.04.

Commands Used
apt update && apt upgrade -y
apt install unzip -y
apt install default-jdk -y
java --version
groupadd -r wildfly
useradd -r -g wildfly -d /opt/wildfly -s /sbin/nologin wildfly

mv wildfly-26.1.3.Final /opt/wildfly
chown -RH wildfly: /opt/wildfly
mkdir -p /etc/wildfly
chmod +x /opt/wildfly/bin/*.sh
systemctl daemon-reload
systemctl start wildfly
systemctl enable wildfly
systemctl status wildfly

if [[ "$1" == "domain" ]]; then
else
fi

systemctl daemon-reload
systemctl restart wildfly
apt install nginx -y

proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
add_header Front-End-Https on;
add_header Cache-Control no-cache;

server {
listen 80;

location / {
}

location /management {
}

location /console {
}

location /logout {
}

location /error {
}

}

nginx -t
systemctl restart nginx

Useful Links
Рекомендации по теме