톰캣 #05-배치

36
.Stone G G

Upload: gyuseok-lee

Post on 21-Jun-2015

136 views

Category:

Software


1 download

DESCRIPTION

톰캣을 사용하는 이유.. Java로 만든 웹어플리케이션을 배치해서 서비스하기 위함이죠. 방법이 다양하니 선택해서 사용하도록 합니다. 개인적으로는..context.xml 방식을 권장합니다.

TRANSCRIPT

Page 1: 톰캣 #05-배치

.StoneGG

Page 2: 톰캣 #05-배치

{톰캣: T o m c a t }

Page 3: 톰캣 #05-배치

Web Application

by Manager

by webapps DIR

by context.xml

ROOT

C H A P T E R # 5

T O M C AT 배치

Page 4: 톰캣 #05-배치

Web Application

Page 5: 톰캣 #05-배치

Web Application

WEB APP D I R

Page 6: 톰캣 #05-배치

Web Application

WEB APP D I R

WEB- INF

Page 7: 톰캣 #05-배치

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 >

Page 8: 톰캣 #05-배치

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……

Page 9: 톰캣 #05-배치

Web Application

Sample WebApp

Page 10: 톰캣 #05-배치

by Manager

Page 11: 톰캣 #05-배치

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

Page 12: 톰캣 #05-배치

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

Page 13: 톰캣 #05-배치

by Manager

Page 14: 톰캣 #05-배치

by Manager

Page 15: 톰캣 #05-배치

by Manager

Page 16: 톰캣 #05-배치

by Manager

Page 17: 톰캣 #05-배치

by Manager

Page 18: 톰캣 #05-배치

by Manager

Page 19: 톰캣 #05-배치

by Manager

Page 20: 톰캣 #05-배치

by webapps DIR

Page 21: 톰캣 #05-배치

by webapps DIR

CATAL INA_HOME

Page 22: 톰캣 #05-배치

CATAL INA_HOME

wor k

l i b

w e b a p p s

c o n f

by webapps DIR

Page 23: 톰캣 #05-배치

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 &quot;%r&quot; %s %b" /> !</Host>

by webapps DIR

se rv e r . xm l

Page 24: 톰캣 #05-배치

by webapps DIR

Page 25: 톰캣 #05-배치

by context.xml

Page 26: 톰캣 #05-배치

s e rv e r . xm l

by context.xml

Page 27: 톰캣 #05-배치

s e rv e r . xm l

<c o n t ex t >

by context.xml

Page 28: 톰캣 #05-배치

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

Page 29: 톰캣 #05-배치

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 >

Page 30: 톰캣 #05-배치

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"/>

Page 31: 톰캣 #05-배치

by context.xml

Page 32: 톰캣 #05-배치

ROOT

Page 33: 톰캣 #05-배치

ROOT

<?xml version="1.0" encoding="UTF-8"?> !<Context path="" docBase="/Users/GSLee/APP/sample" debug="0" reloadable="true" crossContext="true" privileged=“true"/>

Page 34: 톰캣 #05-배치

Web Application

by Manager

by webapps DIR

by context.xml

ROOT

끝{G.Stone : 배치}

Page 35: 톰캣 #05-배치

NEXT

배치 PARALLEL

DEPLOYMENT

Page 36: 톰캣 #05-배치

CategoryGMMG