Java Mac 上 Tomcat 8 的 CATALINA_BASE/webapps 文件夹在哪里?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24623731/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-14 13:32:05  来源:igfitidea点击:

Where is CATALINA_BASE/webapps folder for Tomcat 8 on Mac?

javamacostomcatcatalinatomcat8

提问by

I ran brew install tomcatto install tomcat 8.

我跑去brew install tomcat安装tomcat 8。

Now I need to put my .warfile in CATALINA_BASE/webapps

现在我需要把我的.war文件放进去CATALINA_BASE/webapps

I cannot find that directory anywhere on my computer. How can I locate this folder so I can put my .warin there?

我在计算机上的任何地方都找不到该目录。我怎样才能找到这个文件夹,以便我可以把我的.war放在那里?

采纳答案by Jigar Joshi

use following command

使用以下命令

$catalina -h

it will show the directories you need, alternatively you can upload war file using tomcat manager's web interface

它将显示您需要的目录,或者您可以使用 tomcat manager 的 web 界面上传 war 文件

回答by hashique

It should be installed here:

它应该安装在这里:

/usr/local/Cellar/tomcat/8.0.30/libexec/webapps

/usr/local/Cellar/tomcat/8.0.30/libexec/webapps

Replace 8.0.30with your actual version. Hope this works!!

替换8.0.30为您的实际版本。希望这有效!!