在 Linux 中配置 tomcat 并运行部署的应用程序

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

configure tomcat in Linux and run deployed application

javalinuxtomcat

提问by chetan

I want to start tomcat on command prompt in linux and want to run deployed application in tomcat.Linux is new for me i have done same thing in window. Can i know step for start and run application in tomcat for linux ?

我想在 linux 的命令提示符下启动 tomcat,并想在 tomcat 中运行部署的应用程序。Linux 对我来说是新的,我在窗口中做了同样的事情。我可以知道在 tomcat for linux 中启动和运行应用程序的步骤吗?

I have learn about set environment variable but for linux where to set that i don't know.

我已经了解了设置环境变量,但是对于 linux,我不知道在哪里设置。

采纳答案by JoseK

You could try this step-by-step guide

你可以试试这个分步指南

回答by David O'Meara

depending on your version, the tomcat docs are fairly concise.

根据您的版本,tomcat 文档相当简洁。

http://tomcat.apache.org/tomcat-7.0-doc/setup.html

http://tomcat.apache.org/tomcat-7.0-doc/setup.html

Is there a specific problem?

有什么具体问题吗?

[EDIT] So possibly not great, but unzip, go to the TOMCAT/bin directory and run ./startup.sh

[编辑] 所以可能不是很好,但解压缩,转到 TOMCAT/bin 目录并运行 ./startup.sh

回答by Thomas Jungblut

Once you setuped your Tomcat, you can open the URL of localhost:8080 and you will get to the administration panel. There you can deploy '*.war' files- you can simply export your webapp in Eclipse and upload it there.

设置 Tomcat 后,您可以打开 localhost:8080 的 URL,您将进入管理面板。在那里您可以部署“*.war”文件——您可以简单地在 Eclipse 中导出您的 web 应用程序并将其上传到那里。