서버 설치 · 2 min read · Dec 19, 2025

우분투 18.04에 WildFly (JBoss) Java 애플리케이션 서버 설치하기

WildFly, 이전에 JBoss로 알려졌던, Java로 작성된 무료 오픈 소스 애플리케이션 서버로 Java Enterprise Edition (Java EE) 사양을 구현합니다. Windows 및 Linux를 포함한 여러 플랫폼에서 실행됩니다. WildFly는 애플리케이션이 최적화된 사용자 지정 프로토콜과 백엔드 인프라와의 전이중 통신을 사용할 수 있도록 하는 Web Sockets를 지원합니다.

이 튜토리얼에서는 우분투 18.04 LTS에 WildFly 애플리케이션 서버를 설치하는 방법을 설명합니다.

요구 사항

  • 우분투 18.04 서버에서 실행되는 서버.
  • sudo 권한이 있는 비루트 사용자.
  • 서버에 구성된 정적 IP 주소 192.168.0.235.

Java 설치

WildFly는 Java로 작성되었으므로 시스템에 Java를 설치해야 합니다. 다음 명령어를 실행하여 Java를 설치할 수 있습니다:

sudo apt-get install default-jdk -y

Java가 설치되면 다음 명령어를 사용하여 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 기본 페이지로 리디렉션됩니다:

WildFly 기본 페이지

관리 콘솔에 접근하려면 웹 브라우저를 열고 URL http://192.168.0.235:9990을 입력합니다. 다음 페이지로 리디렉션됩니다:

로그인

이제 WildFly 로그인 자격 증명을 제공한 후 OK 버튼을 클릭합니다. 다음 페이지에서 WildFly 관리 콘솔 대시보드를 볼 수 있어야 합니다:

WildFly 애플리케이션 서버 대시보드

링크

Share: X/Twitter LinkedIn

새 게시물을 받은 편지함에서 받기

스팸은 없습니다. 언제든지 구독 해지 가능합니다.