part 2:Tomcat Configuration

Part 2: Tomcat Configuration

Author: chSkyrain

l  Directory

Directory

Usage

/bin

 

/common/lib

JAR files(accessed by server and all web apps)

/conf

 

/logs

 

/server/lib

JAR(accessed by server)

/server/webapps

Web apps own by server(to manage server)

/shares/lib

JAR files(all web apps share)

/temp

 

/webapps

 

/work

Compiled servlets

 

l  Important configuration files

Ø  Tomcat-users.xml

<tomcat-users>

<role rolename=”” />

<user username=”” password=”” roles=”role1 [,role2…]” />

</tomcat-users>

 

Ø  Server.xml

 

Ø  /webapps/web.xml

 

l  Tomcat management

[Method] Edit xml with handwork + Platform configuration

Ø  Control configuration :configure server and web apps

i)                   For version before tomcat 6(not supported for later version): configure platform

 

ii)                 For later version: /conf/server.xml

n  Service

< Server>,<Service>,<Connector>,<Engine>,<Host>,<Context>

n  Resource

Data Source, Mail Session, Environment Entry, User Database

n  User Definition

Ø  Management configuration: issue, start ,stop or uninstall web applications without restart Tomcat server

i)                   Management platform:

/server/webapps/management --> url: http:/localhost]/manager/

n  Message

n  Manager

n  Application

Path

Display Name

Running

Sessions

Commands

n  Deploy

(1)   Method one

Context Path

 

XML configuration file URL

 

WAR or Directory URL

 

 

(2)   Method two

Select WAR file to upload

n  Server Information

ii)                 Configuration file:

/webapps/web.xml

 

转载于:https://my.oschina.net/ch90/blog/15381

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值