WebDeploy未在端口8172上侦听 [英] WebDeploy not listening on port 8172

查看:354
本文介绍了WebDeploy未在端口8172上侦听的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将一个简单的Web应用程序从我的开发机部署到Windows 7 Professional虚拟机上运行的IIS.

I'm try to deploy a simple web application from my dev machine to IIS running on a Windows 7 Professional virtual machine.

在这台计算机上,我执行了以下操作:

On this machine I did the following:

  1. 已安装Web Deploy 3.6,确保已安装所有功能.

  1. Installed Web Deploy 3.6, making sure all features get installed.

确保将"Web管理"和"Web部署代理"服务设置为自动"并且当前正在运行.

Made sure the Web Management and Web Deployment Agent services are set to Automatic and currently running.

启用Windows防火墙中的端口8172(未安装其他防火墙).该规则已经存在,但尚未启用.

Enabled port 8172 in Windows Firewall (no other firewall installed). The rule was already there but not enabled.

暂时关闭Windows防火墙,以确保它仍未阻止端口.

Temporarily turned off Windows Firewall to make sure it's still not blocking the port.

当我尝试时:

netstat -aon | findstr :8172

我没有任何结果,因此该端口上没有任何监听.

I get no results, so nothing is listening on this port.

作为测试,我在服务器上安装了VS 2012,并且使用Web Deploy进行发布时效果很好.但是,这不是我需要的方法.

As a test, I installed VS 2012 on the server and publishing with Web Deploy works fine. However, this is not the way I need to do it.

我还能尝试确保服务在端口8172上侦听吗?

What else can I try to make sure that the services are listening on port 8172?

推荐答案

还应该检查两个步骤:

只需通过RDP连接到远程服务器,打开IIS并打开此选项:

Just connect to the remote server through RDP, open IIS and open this option:

在右侧面板中,将其停止.这实际上将停止 Web管理服务.然后,您将可以选中启用远程连接标志.选中它,单击右侧面板中的应用选项,然后单击开始.

In the right panel, stop it. This will actually stop Web Management Service. Then you will be able to check Enable remote connections flag. Check it, click the Apply option in the right panel, then Start.

这对于使您能够从其他计算机(例如您的开发计算机)远程连接到该IIS服务器也是必要的.

This is also necessary for enabling you to remotely connect to this IIS server from other computers (like your dev computer).

如果您使用的是AWS EC2或Azure,则在虚拟机本身上打开8172端口是不够的.也有带有入站/出站规则的安全组.

If you are using AWS EC2 or Azure, opening 8172 port on the virtual machine itself is not enough. There are security groups with inbound/outbound rules as well.

对于AWS,请打开EC2面板,转到安全组,然后为端口8172添加一个自定义TCP规则作为入站规则.确保对正确的安全组(虚拟机使用的安全组)执行此操作.

For AWS, you open your EC2 panel, go to Security Groups, then add a Custom TCP Rule for port 8172 as an Inbound Rule. Make sure you do it to the right Security Group (the one used by your Virtual Machine).

现在,如果您使用的是Azure:

Now, if you are using Azure:

  1. 打开 Azure门户网站.
  2. 在左侧面板中选择虚拟机".
  3. 在表中,有一列资源组".单击您的VM的资源组.
  4. 在网络安全组中单击.
  5. 添加端口8172的入站规则.
  1. Open Azure Portal.
  2. Select "Virtual Machines" in the left panel.
  3. In the table, there is a column "Resource Group". Click the resource group for your VM.
  4. Click in the Network Security Group.
  5. Add the Inbound Rule for port 8172.

就是这样.

这篇关于WebDeploy未在端口8172上侦听的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆