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