简体   繁体   English

如何更改 Tomcat 上的 webapp 文件夹

[英]How to change webapp folder on Tomcat

I use tomcat 8.5.31 on Windows Server 2012 r2.我在 Windows Server 2012 r2 上使用 tomcat 8.5.31。

I need to change webapp folder from: C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps to C:\Alessandrotest\webapps我需要将 webapp 文件夹从: C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps更改为C:\Alessandrotest\webapps

I tried to modify in conf/server.xml this parameters:我试图在 conf/server.xml 中修改这个参数:

>      <Host name="localhost"
            appBase="webapps"
            unpackWARs="true"
            autoDeploy="true" >

In this mode在这种模式下

>      <Host name="localhost"
            appBase="/C:/Alessandrotest/webapps"
            unpackWARs="true"
            autoDeploy="true" >

But it doesn't work.但它不起作用。

Could you use below syntax and test.你能用下面的语法和测试吗?

<Host name="localhost"
            appBase="C:/Alessandrotest/webapps"
            unpackWARs="true"
            autoDeploy="true" >

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM