英文:
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 服务器。问题是,我不知道在以下截图中的服务器位置字段中应输入什么:
虚拟机上的服务器运行在 /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:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论