Wildfly 20에 Application 배포(CLI) > Middle

본문 바로가기
사이트 내 전체검색

Middle

JBoss Wildfly 20에 Application 배포(CLI)

페이지 정보

profile_image
작성자 MiddleM
댓글 0건 조회 128회 작성일 21-01-28 13:43

본문

1. 개요

이 문서는 linuxdata.org의 Wildfly 20에 CLI를 사용하여 애플리케이션을 배포하는 내용을 다루고 있습니다.



1.1. Wildfly SERVER SPEC

 구분

상세 정보 

 장비명

 KVM - Virtual Machine

 CPU

 Core 4

 Memory

 4096 MB

 HDD

 100 GB

 NIC

 NAT (192.168.101.188)


1.2. Wildfly SERVER PACKAGE

 구분

상세 정보 

 OS

CentOS 7.9-2009 

 PACKAGE

#JAVA

java-11-openjdk.x86_64

 

#Wildfly

Wildfly 20 


2. Environment Setting

 

2.1. Application 다운로드

Tomcat에서 제공하는 테스트 파일을 설치할 것입니다.


[root@wildfly20 ~]# mkdir /etc/wildfly/application/

[root@wildfly20 ~]# cd /etc/wildfly/application/

[root@wildfly20 application]# wget https://tomcat.apache.org/tomcat-7.0-doc/appdev/sample/sample.war

--2021-01-26 13:32:07--  https://tomcat.apache.org/tomcat-7.0-doc/appdev/sample/sample.war

Resolving tomcat.apache.org (tomcat.apache.org)... 40.79.78.1, 95.216.26.30, 95.216.24.32, ...

Connecting to tomcat.apache.org (tomcat.apache.org)|40.79.78.1|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 4606 (4.5K)

Saving to: ‘sample.war’

 

100%[==============================================================================================>] 4,606       --.-K/s   in 0s     

 

2021-01-26 13:32:07 (192 MB/s) - ‘sample.war’ saved [4606/4606]


2.2. Wildfly 실행

[root@wildfly20 application]# systemctl start wildfly

[root@wildfly20 application]# systemctl status wildfly

 

 wildfly.service - The WildFly Application Server

   Loaded: loaded (/etc/systemd/system/wildfly.service; disabled; vendor preset: disabled)

   Active: active (running) since Tue 2021-01-26 13:29:04 KST; 5min ago

 Main PID: 26690 (launch.sh)

    Tasks: 73

   CGroup: /system.slice/wildfly.service

           ├─26690 /bin/bash /opt/wildfly/bin/launch.sh standalone standalone.xml 192.168.101.188 192.168.101.188

           ├─26691 /bin/sh /opt/wildfly/bin/standalone.sh -c standalone.xml -b 192.168.101.188 -bmanagement 192.168.101.188

           └─26789 java -D[Standalone] -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4...

 

Jan 26 13:29:04 wildfly20 systemd[1]: Started The WildFly Application Server.



3. Application 배포

 구분

상세 정보 

 Name

 sample

Runtime Name

 sample.war

Path

 /etc/wildfly/application/sample.war


[root@wildfly20 ~]# cd /opt/wildfly/bin/

[root@wildfly20 bin]# ./jboss-cli.sh --connect --controller=192.168.101.188:9990 --command="deploy --unmanaged --name=sample --runtime-name=sample.war /etc/wildfly/application/sample.war"

 


4. Application 배포 확인

Curl을 Application이 배포가 되었는지 확인합니다

[root@wildfly20 ~]# curl 192.168.101.188:8080/sample/

<html>

<head>

<title>Sample "Hello, World" Application</title>

</head>

<body bgcolor=white>

 

<table border="0">

<tr>

<td>

<img src="images/tomcat.gif">

</td>

<td>

<h1>Sample "Hello, World" Application</h1>

<p>This is the home page for a sample application used to illustrate the

source directory organization of a web application utilizing the principles

outlined in the Application Developer's Guide.

</td>

</tr>

</table>

 

<p>To prove that they work, you can execute either of the following links:

<ul>

<li>To a <a href="hello.jsp">JSP page</a>.

<li>To a <a href="hello">servlet</a>.

</ul>

 

</body>

</html>

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

사이트 정보

회사명 : (주)리눅스데이타시스템 / 대표 : 정정모
서울본사 : 서울특별시 강남구 봉은사로 114길 40 홍선빌딩 2층 / tel : 02-6207-1160
대전지사 : 대전광역시 유성구 노은로174 도원프라자 5층 / tel : 042-331-1161

접속자집계

오늘
256
어제
301
최대
680
전체
26,976
Copyright © www.linuxdata.org All rights reserved.