我正在尝试使用以下msdeploy命令部署我的应用程序:
MSDeploy.exe -source:contentPath="C:\Users\myUser\Documents\ui\dist" -dest:contentPath='c:/inetpub/wwwroot/dist',computerName="https://ec2-xx-xxx-xx-xx.ap-northeast-1.compute.amazonaws.com:8172/MSDeploy.axd?site=Default Web Site",username="administrator",password="XXXXXXXXX",authtype="Basic",includeAcls="False" -verb:sync -allowUntrusted获取以下错误:
Working...
Info: Using ID '01657062-cece-4713-8dc6-585537b265fd' for connections to the rem
ote server.
>> Error Code: ERROR_DESTINATION_NOT_REACHABLE
>> More Information: Could not connect to the remote computer ("ec2-52-207-222-6
5.compute-1.amazonaws.com"). On the remote computer, make sure that Web Deploy i
s installed and that the required process ("Web Management Service") is started.
Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION
_NOT_REACHABLE.
>> Error: Unable to connect to the remote server
>> Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond xx.xxx.xx.xx:8172我在其他6台服务器上尝试了相同的命令,它运行得很好,但对配置相同的2台服务器却不起作用。
我错过了什么?
发布于 2016-07-11 16:46:22
将该规则添加到端口8172的安全组中,它就开始工作了。但是我不知道为什么它以前在Visual中工作,而不是在命令提示符中工作。
发布于 2016-10-06 12:41:19
若要使用Web成功地将网站部署到windows服务器上,请确保以下内容已经到位。
发布于 2021-06-16 12:25:49
下面的步骤解决了我的问题。
在windows服务器上安装web部署时,请确保选择“完成”功能安装,而不是“典型”或“自定义”。安装完成后,您将能够从visual studio部署应用程序。

https://stackoverflow.com/questions/38271966
复制相似问题