View
136
Download
1
Category
Preview:
DESCRIPTION
톰캣을 사용하는 이유.. Java로 만든 웹어플리케이션을 배치해서 서비스하기 위함이죠. 방법이 다양하니 선택해서 사용하도록 합니다. 개인적으로는..context.xml 방식을 권장합니다.
Citation preview
.StoneGG
{톰캣: T o m c a t }
Web Application
by Manager
by webapps DIR
by context.xml
ROOT
C H A P T E R # 5
T O M C AT 배치
Web Application
Web Application
WEB APP D I R
Web Application
WEB APP D I R
WEB- INF
WEB- I NF
Web Application
c l a s s e s
w e b . xm l
l i b
!!< w e b - a p p > ! < d e s c r i p t i o n > We l c o m e t o To m c a t < / d e s c r i p t i o n > !< / w e b - a p p >
c l a s s , c l a s s , c l a s s , c l a s s , c l a s s……
Web Application
c l a s s e s
l i b j a r , j a r , j a r , j a r , j a r , j a r , j a r……
Web Application
Sample WebApp
by Manager
Tomca t Ma n a g e rAp p l i c a t i o n Ma n a g e r
by Manager
by Manager
A p p l i c a t i o n Ma n a g e r
h t t p : / / i p : p o r t
by Manager
by Manager
by Manager
by Manager
by Manager
by Manager
by Manager
by webapps DIR
by webapps DIR
CATAL INA_HOME
CATAL INA_HOME
wor k
l i b
w e b a p p s
c o n f
by webapps DIR
weba p p s
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> ! <Valve className=“org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> !</Host>
by webapps DIR
se rv e r . xm l
by webapps DIR
by context.xml
s e rv e r . xm l
by context.xml
s e rv e r . xm l
<c o n t ex t >
by context.xml
c o n t ex t . xm l
<c o n t ex t >
s e rv e r . xm l
Tomcat 5.5.12+ (recommanded)
by context.xml
by context.xml
c o n t ex t . xm l
$CATAL INA_HOME / c o n f / c o n t ex t . xm l
$CATAL INA_HOME / c o n f / [ e n g i n e n ame ] / [ h o s t n ame ] /c o n t ex t . xm l . d e f a u l t
$CATAL INA_HOME / c o n f / [ e n g i n e n ame ] / [ h o s t n ame ] /[w e b a p p ] . xm l
< c o n t ex t >
by context.xml
<?xml version="1.0" encoding="UTF-8"?> !<Context path="sample" docBase="/Users/GSLee/APP/sample" debug="0" reloadable="true" crossContext="true" privileged="true"/>
$CATAL INA_HOME / c o n f / [ e n g i n e n ame ] / [ h o s t n ame ] / s amp l e . xm l
<?xml version="1.0" encoding="UTF-8"?> !<Context path="" docBase="/Users/GSLee/APP/sample" debug="0" reloadable="true" crossContext="true" privileged="true"/>
by context.xml
ROOT
ROOT
<?xml version="1.0" encoding="UTF-8"?> !<Context path="" docBase="/Users/GSLee/APP/sample" debug="0" reloadable="true" crossContext="true" privileged=“true"/>
Web Application
by Manager
by webapps DIR
by context.xml
ROOT
끝{G.Stone : 배치}
NEXT
배치 PARALLEL
DEPLOYMENT
CategoryGMMG
Recommended