[英]Run Jetty Website on Azure Virtual Machine
I have created a Java Web Application using Jetty (in Eclipse, using OSGI etc.). 我已经使用Jetty创建了一个Java Web应用程序(在Eclipse中,使用OSGI等)。 The application itself runs quite well (when being tested locally), so I wanted to run it on an Azure virtual machine in order to be accessible for external users (for testing reasons). 该应用程序本身运行得很好(在本地进行测试时),因此我想在Azure虚拟机上运行它,以便外部用户可以访问(出于测试原因)。
What I did so far: 到目前为止,我做了什么:
Does anyone ever tried to run a java webapp on Azure or has a hint what could go wrong here? 是否有人尝试在Azure上运行Java WebApp或暗示此处可能出问题?
By default, windows servers in Azure have the windows firewall enabled. 默认情况下,Azure中的Windows服务器已启用Windows防火墙。 This would block external connections to port 8080 by default. 默认情况下,这将阻止与端口8080的外部连接。 Try adding an appropriate exception to the windows firewall rules. 尝试将适当的例外添加到Windows防火墙规则。
According to your description, I think you have correctly configured the new endpoints for the network traffic of Java Webapp. 根据您的描述,我认为您已经为Java Webapp的网络流量正确配置了新的端点。 If not or incorrectly does, please refer to the article https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-create-nsg-arm-pportal/ to configure again. 如果不是或错误地进行了配置,请参考文章https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-create-nsg-arm-pportal/进行重新配置。
Then, as @CtrlDot said, you need to configure the firewall for allowing the inbound traffic on Windows Server. 然后,如@CtrlDot所述,您需要配置防火墙以允许Windows Server上的入站流量。
As reference, please see the article about allowing inbound traffic to a specified TCP or UDP port on Windows Server to do it. 作为参考,请参阅有关允许进入Windows Server上指定TCP或UDP端口的入站流量的文章。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.