在Azure上建立Ubuntu的虚拟机与Apache [英] Setting up ubuntu VM on Azure with apache
问题描述
在Azure中,我创建了一个虚拟的网络,然后相关的Ubuntu服务器的虚拟机,具有Azure的资源管理器的部署方法创建的,与该网络。然后我更新了相关网络安全组,并增加了对80端口的入站安全规则(来源:任何,目的地:任何,服务:TCP / 80)。在虚拟机上安装Apache后,我试图从我的浏览器访问服务器,但都碰壁。我可以SSH到虚拟机就好了,但网络是一个不走了,我想不通为什么。任何帮助将是AP preciated。
In Azure, I created a virtual network and then associated an Ubuntu Server virtual machine, created with Azure Resource Manager Deployment method, with the network. I then updated the associated Network Security Group and added an inbound security rule for port 80 (Source:Any, Destination:Any, Service:TCP/80). After installing Apache on the VM, I tried to access the server from my browser, but have run into a wall. I can SSH into the VM just fine, but web is a no-go, and I cannot figure out why. Any help would be appreciated.
推荐答案
它的工作对我这个入站规则。
注意,当从门户创建一个VM(在ARM模型),它就会自动关联到虚拟网络(vnet),所述的vnet内特定子网和网络安全组。
Note that when a VM is created from the portal (in ARM model), it gets automatically associated to a virtual network (vnet), a specific subnet within the vnet and a network security group.
在创建入站安全规则,确保为:
When creating the inbound security rule, make sure to:
- 识别关联到VM 正确的网络安全组
- 使用超过65500 优先级较低的数
- 将源端口范围为
*
- identify the correct network security group associated to the VM
- use a priority number lower than 65500
- set the source port range as
*
这篇关于在Azure上建立Ubuntu的虚拟机与Apache的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!