# WAS | JBoss

JBoss wildfly-24.0.1 install

강냉:) 2022. 12. 21. 16:30

1. wildfly downlolad 홈페이지에 접속하여 설치파일 다운로드

https://www.wildfly.org/downloads/

 

WildFly Downloads

8.2.0.Final FinalNov 20, 2014 Java EE7 Full & Web Distribution LGPL zip tgz Update Existing 8.1.0 Final Install LGPL zip Application Server Source Code LGPL zip tgz Release Notes LGPL Notes

www.wildfly.org

 

 

2. wildfly 24.0.1 설치할 것이므로 해당 버전 설치 목록으로 찾아가서 다운.

 

 

 3. FTP를 사용하여 서버로 옮겨주고 압축을 풀어준다.

unzip [zip파일명]

 

4. standalone.xml 편집

$ WildFly_INSTALL_DIR/configuration/standalone.xml

 

management(관리콘솔), public(서비스)의 IP(127.0.0.1)를 서비스할 IP주소로 바꿔준다.

127.0.0.1 로 되어 있을 경우 로컬에서만 접속 가능

 

 

 

5.관리 콘솔 사용자 추가

$ WildFly_INSTALL_DIR/bin/add-user.sh

[wildfly@spectrumscale01 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 : admin 
User 'admin' already exists and is enabled, 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 '/home/wildfly/programs/wildfly-16.0.0.Final/standalone/configuration/mgmt-users.properties' 
Updated user 'admin' to file '/home/wildfly/programs/wildfly-16.0.0.Final/domain/configuration/mgmt-users.properties' 
Updated user 'admin' with groups  to file '/home/wildfly/programs/wildfly-16.0.0.Final/standalone/configuration/mgmt-groups.properties' 
Updated user 'admin' with groups  to file '/home/wildfly/programs/wildfly-16.0.0.Final/domain/configuration/mgmt-groups.properties' 
Is this new user going to be used for one AS process to connect to another AS process? Enter 
e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls. 
yes/no? no

 

6. 기동

$  WildFly_INSTALL_DIR/bin/standalone.sh &

 

 

* standalone.sh 는 디폴트로 WildFly_INSTALL_DIR/standalone/configuration/statndalone.xml 파일을 읽어서 구동하는데 별도의 구성 파일을 읽어서 구동하고자 한다면 --server-config 옵션을 활용하면 된다.

      예)  shell> WildFly_INSTALL_DIR/bin/standalone.sh --server-config=test_config.xml &

 

7. 종료 

 

& WildFly_INSTALL_DIR/bin/jboss-cli.sh --controller=[ip]:9990 --connect command=:shutdown

 

 

 ** management IP를 127.0.0.1(디폴트 값)로 설정하였을 경우에는 --controller 옵션 생략 가능

 

8. 접속 테스트

- 관리 콘솔 : http://ip:9990

- 디폴트 웹페이지 : http://ip:8080