Tomcat如何定位webapps目录? [英] How does Tomcat locate the webapps directory?

查看:39
本文介绍了Tomcat如何定位webapps目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Tomcat 如何定位 webapps 目录?这个位置在哪里设置?是相对目录吗?

How does Tomcat locate webapps directory? Where is this location set? Is it a relative directory?

推荐答案

可以在<$CATALINA_BASE/conf/server.xml中更改/代码>.请参阅 Tomcat 文档,特别是有关 Host 容器的部分:

It can be changed in the $CATALINA_BASE/conf/server.xml in the <Host />. See the Tomcat documentation, specifically the section in regards to the Host container:

Tomcat 6 配置

Tomcat 7 配置

默认是 webapps 相对于 $CATALINA_BASE.可以使用绝对路径名.

The default is webapps relative to the $CATALINA_BASE. An absolute pathname can be used.

希望有所帮助.

这篇关于Tomcat如何定位webapps目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆