如何在主机上的Netbeans中连接到虚拟机中的Tomcat服务器?

huangapple go评论66阅读模式
英文:

How can I connect a Tomcat server in a Virtual Machine with Netbeans on the Host machine?

问题

以下是翻译好的部分:

我有一台运行终端-only Ubuntu 的 VMware Workstation 虚拟机,其中包含一个 Apache Tomcat 服务器。服务器正在运行,我可以通过主机使用 web 浏览器访问它,但我需要将 Netbeans(在主机上运行)连接到 Tomcat 服务器。问题是,我不知道在以下截图中的服务器位置字段中应输入什么:
如何在主机上的Netbeans中连接到虚拟机中的Tomcat服务器?

虚拟机上的服务器运行在 /usr/share/tomcat10

提前感谢您的帮助。

我已尝试输入服务器IP、服务器位置,但都没有成功。

英文:

I have a VMware Workstation machine running a terminal-only Ubuntu, which contains an Apache Tomcat server. The server is running and I can access it through the Host using the web browser, but I need to connect Netbeans (on the Host machine) to the Tomcat server. The problem is that I don't know what to type in Server Location in the following screenshot:
如何在主机上的Netbeans中连接到虚拟机中的Tomcat服务器?

The server, on the virtual machine is running on /usr/share/tomcat10

Thanks in advance.

I have tried typing the server IP, the location of the server, and none worked.

答案1

得分: 0

If Netbeans is expecting a directory you can not connect it to a virtual machine out of the box. The virtual machine has its own filesystem, invisible to the host. Use VMWare to share the path of Tomcat inside the virtual machine to a path in the host machine that Netbeans can use.

英文:

If Netbeans is expecting a directory you can not connect it to a virtual machine out of the box. The virtual machine has its own filesystem, invisible to the host. Use VMWare to share the path of Tomcat inside the virtual to machine to a path in the host machine that Netbeans can use.

huangapple
  • 本文由 发表于 2023年5月10日 23:06:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/76220023.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定