简体   繁体   English

如何在本地计算机上为远程tomcat服务器制作Web应用程序

[英]How to make a web app for remote tomcat server on local machine

I have installed a Tomcat 9 on an Ubuntu server 18.04 running on a VM and now I want to deploy an example app wrote by me so I can at least get the hang of it. 我已经在VM上运行的Ubuntu server 18.04上安装了Tomcat 9 ,现在我想部署一个由我编写的示例应用程序,这样至少我可以掌握它了。

Now the problem is all of the tutorials I've found on how to write a web app for tomcat and then deploy it(I wanted to make the web app on my local machine and then deploy it as a WAR file to the server running on my VM) tell me that I need a runtime target which needs to be the server. 现在的问题是我找到了有关如何为tomcat编写Web应用程序并进行部署的所有教程(我想在本地计算机上制作该Web应用程序,然后将其作为WAR文件部署到运行该服务器的服务器上)我的VM)告诉我,我需要一个运行时目标,该目标必须是服务器。

Seeing how my server is running on a VM I do not know how or if it is possible to use a remote target. 看到服务器如何在VM上运行,我不知道如何或是否可以使用远程目标。

Now my question is: Is there any way to write a web app in Java for a Tomcat server(I've installed Eclipse for this, but I can use any other IDE) without having the server installed on my local machine? 现在我的问题是:有没有办法用Java为Tomcat服务器编写Web应用程序(我已经为此安装了Eclipse,但是我可以使用任何其他IDE)却没有在本地计算机上安装服务器?

Tomcat is a server which is used to run you web application so if you are writing the code you dont need a server up and running on your local machine. Tomcat是用于运行Web应用程序的服务器,因此,如果您正在编写代码,则不需要在本地计算机上启动并运行服务器。 Tomcat server or any server is needed if you want to deploy your application may be for your testing before you deploy 如果要部署应用程序,则需要Tomcat服务器或任何服务器,以便进行部署之前的测试

暂无
暂无

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

相关问题 在远程服务器上加载Web应用程序(Tomcat上的Servlet) - Load web app (servlet on Tomcat) in a remote server 如何通过使用 Selenium Grid 将文件从本地机器传输到远程 web 服务器来上传文件 - How to upload a file by transfering the file from the local machine to the remote web server using Selenium Grid Spring Boot App可在本地Tomcat上运行,但不能在远程服务器上运行 - Spring Boot App works on local Tomcat but not on remote server Tomcat安装在远程服务器上。 如何在本地浏览器上检查 - Tomcat installed on remote server. how to check on local browser Tomcat servlet 在本地机器上工作,在服务器上中断 - Tomcat servlet works on local machine, breaks on server 如何使Web服务URL在远程计算机上工作? - How to make a web service url work on a remote machine? 远程JVM(服务器)中的数据访问层(和数据库)如何与本地JVM中的Web应用程序通信? - How Data Access Layer (and Database) which are in remote JVM (server) communicate with web app which is in local JVM? 如何从另一个Web应用程序在远程计算机上执行bat文件 - How to execute a bat file on remote machine from another web app 如何从远程服务器为位于apache-tomcat WEB-INF / lib文件夹下的jar文件制作下载URL? - How to make a download url for the jar file located under apache-tomcat WEB-INF/lib folder from remote server? 将远程服务器目录复制到本地计算机 - Copy remote server directories to local machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM