[英]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.