Java 在 Mac OS X 上安装 Tomcat

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/39386212/
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-11 21:05:36  来源:igfitidea点击:

Install Tomcat on Mac OS X

javamacostomcat

提问by mllm

How do you install Tomcaton Mac OS X?

如何在 Mac OS X 上安装Tomcat

This guidelooks quite complicated.

这个指南看起来很复杂。

采纳答案by mllm

brew install tomcat

brew install tomcat

(using Homebrewof course)

(当然使用自制软件

回答by Arty

You just use brew install tomcatas mentioned in the answer above. Should you want to edit configurations or add a web application to the Tomcat you downloaded in Homebrew, the files (aka "kegs" kept in the "Cellar") will normally be in the directory /usr/local/Cellar/<Your-Tomcat-Folder>. Should you want to run Tomcat, you just use the catalina runor just do catalinaand it will show you all the parameters you can use with Tomcat.

您只需brew install tomcat按照上述答案中的说明使用即可。如果您想编辑配置或将 Web 应用程序添加到您在 Homebrew 中下载的 Tomcat,文件(即保存在“Cellar”中的“小桶”)通常位于/usr/local/Cellar/<Your-Tomcat-Folder>. 如果您想运行 Tomcat,您只需使用catalina run或 just do catalina,它就会显示您可以与 Tomcat 一起使用的所有参数。

Alternatively using Homebrew, you could first install services with brew tap homebrew/services, then start/stop/restart Tomcat with brew services start tomcatand so on.

或者使用 Homebrew,您可以先使用 安装服务brew tap homebrew/services,然后使用 启动/停止/重新启动 Tomcat,brew services start tomcat依此类推。

回答by Jay Prakash

If you want simple step by step installation processand customized configuration,Click on below tutorial links:

如果您想要简单的分步安装过程和自定义配置,请单击以下教程链接:

  • For tomcat installation:
  • 对于tomcat安装:

This Guide

本指南

  • To Customize configuration:
  • 自定义配置:

Configuration

配置