簡體   English   中英

MSDeploy 無法遠程服務器

[英]MSDeploy not able to remote server

我有兩台機器,第一台是我的開發機器,第二台是遠程測試機器。 我在兩者上都安裝了 IIS 和 Web 部署。 當我在我的開發和測試機器上使用 msdeploy 命令在本地進行部署時,我的部署是成功的。 但是,當我從開發機器部署到遠程測試機器時,我收到如下錯誤:

Error Code: ERROR_DESTINATION_NOT_REACHABLE
More Information: Could not connect to the remote computer ("some-remote- server"). On the remote computer, make sure that Web Deploy is 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: No connection could be made because the target machine actively refused it 10.111.32.57:8172
Error count: 1.

我正在運行以下 msdeploy 命令:

C:\"Program Files (x86)"\IIS\"Microsoft Web Deploy V3"\msdeploy.exe -verb:sync -source:package="test.zip" -dest:auto,ComputerName="https://some-remote-machine:8172/MsDeploy.axd" -setParam:name="IIS Web Application Name",value="Default Web Site/Admin"

首先,確保您在兩台機器上都安裝了管理服務。

在此處輸入圖片說明

它正在運行並設置 windows 和 iis 憑據。

在此處輸入圖片說明

並打開8172端口。

將 iis 管理器用戶設置為坐位。

在此處輸入圖片說明

配置 Web 部署發布設置。

在此處輸入圖片說明

您將在配置中找到目標 URL:

在此處輸入圖片說明

以管理員身份運行命令提示符並運行以下命令:

C:\Program Files (x86)\IIS\Microsoft Web Deploy V3>msdeploy.exe -verb:sync -source:package="c:\abc.zip" -dest:iisApp="authapp/app1",ComputerName="https://servername:8172/msdeploy.axd",UserName='server\Administrator',Password='password',AuthType='Basic' -allowUntrusted

或者

C:\Program Files (x86)\IIS\Microsoft Web Deploy V3>msdeploy.exe -verb:sync -source:iisApp="C:\inetpub\wwwroot\sitea" -dest:iisApp="authapp/app1",ComputerName="https://server:8172/msdeploy.axd",UserName='server\Administrator',Password='password',AuthType='Basic' -allowUntrusted

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM