Config
1. Listener
1_1) 8080 is normal port number
1_2) server.xml
- I can fix a my port number
- <Connector connectionTimeout="20000" port="8088" protocol="HTTP/1.1" redirectPort="8443"/>
2. ClassLoader
2_1) ClassLoader is a task performer that get a Java class
2_2) ClassLoader get a classes to make a ClassPath
2_3) ClassPath
- Before we start a Java or Tomcat, We can config a specific class
a. :BOOTCLASSPATH:
-Xbootclasspath/p:HelloWorld
-Xbootclasspath/a:HelloWorld
b. EXTENSIONSCLASSPATH
c. CLASSPATH
- CLASSPATH=HelloWorld
- CLASSPATH=${CLASSPATH}:HelloWorld
- CLASSPATH=HelloWorld:${CLASSPATH}
3. setenv.sh(download zip version)
CATALINA.SH said
Do not set the variables in this script. Instead put them into a script
# setenv.sh in CATALINA_BASE/bin to keep your customizations separate.
Where do we config that stuff?
- Global(all tomcat) option: config by using path
- Specific(a tomcat) option: config by using script
3_1. To make a setenv.sh
- CATALINA.SH call a setenv.sh
3_2. If we config a
[JAVA -OPTS ="-DMy_Tomcat -Xms512m -Xmx512m -verbosegc"]
, We will put above context in sentenv.sh
3_3. and sentenv.sh will be in Tomcat -> bin
4. web.xml(conf/web.xml not a application)
- Tomcat is a Java application
- web.xml handle a Servlet and jsp
- Interwork(Catalina, jasper, sessionTime, mime, etc..)
5. log
5_1. manager log (application)
- log about access
5_2. host manager (application)
5_3. localhost-access(access)
- Access info about localhost
- server.xml
5_4. localhost(host)
- application's info that deployed on localhost
5_5. catalina.out(system)
- info about console
- CATALINA.OUT
- catalina.sh
- setenv.sh
- Commonly use it
5_6. catalina.log(catalina engine)
'WAS > Tomcat' 카테고리의 다른 글
[Tomcat] 6. Interwork DB (0) | 2016.04.24 |
---|---|
[Tomcat] 5. Batch - Parallel deployment (0) | 2016.04.24 |
[Tomcat] 4. Batch (0) | 2016.04.22 |
[Tomcat] 2. Set up a native lib (0) | 2016.04.21 |
[Tomcat] 1. Why do we use a tomcat? (0) | 2016.04.21 |