简体   繁体   English

如何在虚拟机中运行的主机中访问Web应用程序

[英]How to access web application in host running in virtual machine

Currently I have setup an ubuntu server in virtual PC running in Windows 7. 目前我在Windows 7中运行的虚拟PC中设置了一个ubuntu服务器。

Got it from http://developer-should-know.com/post/134394533957/how-to-install-wildfly-on-ubuntu 来自http://developer-should-know.com/post/134394533957/how-to-install-wildfly-on-ubuntu

I configured JAVA and JBOSS related configuration and deployed a simple .war file(App). 我配置了JAVA和JBOSS相关的配置并部署了一个简单的.war文件(App)。

Now I want to access it in my host pc ie in windows. 现在我想在我的主机PC中访问它,即在Windows中。 when I am pinging from host pc ip: 192.168.64.129 its responding but when I put the ip in host browser its not accessing war file. 当我从主机pc ip: 192.168.64.129 ping它响应,但是当我把ip放在主机浏览器中时它没有访问war文件。

I know now i am lacking some more config issue. 我知道现在我缺少一些配置问题。 How to solve it? 怎么解决?

By default, wildfly listens on port 8080 (and the default http port of browsers is 80). 默认情况下,wildfly侦听端口8080(浏览器的默认http端口为80)。 So you could use 所以你可以使用

http://192.168.64.129:8080/

Alternatively, see the WildFly Admin Guide - Configuring interfaces and ports and change the http binding from 8080. 或者,请参阅WildFly管理员指南 - 配置接口和端口,并从8080更改http绑定。

暂无
暂无

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

相关问题 无法访问在某台计算机上运行的Web应用程序 - Unable to access web application running on a certain machine 在本地机器上运行的Web应用程序 - web application running in local machine 在本地主机上运行Web应用程序 - Running web application on local host 如何在Linux机器上的Tomcat上运行的Web应用程序中使用JVM参数 - How to use JVM parameters for web application running on tomcat, on linux machine 通过IP地址访问Web应用程序以及通过计算机的主机名访问Web应用程序时,外观会有所不同吗? - Can there be a difference on how a web application looks when it is accessed via IP Address and when via the host name of the machine? Kafka:从宿主机发布的事件不会被运行在 Docker 中的应用程序消费 - Kafka: events published from the host machine are not consumed by the application running in Docker Web应用程序无法连接到虚拟机上的Postgres数据库 - Web application unable to connect to Postgres database on virtual machine 如何使Android应用程序消耗运行在同一台机器上的Tomcat上的JAX Jersey Web Service - How to make android application consume JAX Jersey Web Service running on tomcat on same machine 如何在 azure 中获取运行我的应用程序的虚拟机名称 - How to get the virtual machine name that my app is running on in azure 在运行RHEL6的虚拟机中,如何防止屏幕变黑? - How to prevent screen going blank in a virtual machine running RHEL6?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM