第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

在 IIS 上運行 go web 應(yīng)用程序

在 IIS 上運行 go web 應(yīng)用程序

Go
慕妹3242003 2021-11-22 19:25:03
有沒有辦法在 IIS 上運行 Go web 應(yīng)用程序?我找到了 azure 的設(shè)置,但它在我的開發(fā)機器上不起作用,這是 azure 的網(wǎng)絡(luò)配置:<?xml version="1.0" encoding="UTF-8"?><configuration>    <system.webServer>        <handlers>            <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />        </handlers>        <httpPlatform processPath="d:\home\site\wwwroot\go\bin\go.exe"                       arguments="run d:\home\site\wwwroot\server.go"                       startupTimeLimit="60">            <environmentVariables>              <environmentVariable name="GOROOT" value="d:\home\site\wwwroot\go" />            </environmentVariables>        </httpPlatform>    </system.webServer></configuration>
查看完整描述

2 回答

?
陪伴而非守候

TA貢獻1757條經(jīng)驗 獲得超8個贊

您的本地 IIS 無法正常工作,因為您需要安裝一個單獨的組件,稱為 HttpPlatformHandler 模塊,

https://azure.microsoft.com/en-us/blog/announcing-the-release-of-the-httpplatformhandler-module-for-iis-8/

http://www.iis.net/downloads/microsoft/httpplatformhandler

反向代理或 FastCGI 是舊方法,這種新方法不再需要。


查看完整回答
反對 回復(fù) 2021-11-22
?
素胚勾勒不出你

TA貢獻1827條經(jīng)驗 獲得超9個贊

HttpPlatformHandler 模塊對我不起作用。我發(fā)現(xiàn)Sutean Rutjanalard 在 Medium 上的這篇文章非常有幫助,它使用 ASP.NET Core 模塊代替。


基本上,您需要像使用 .net 核心應(yīng)用程序一樣使用“無托管代碼”創(chuàng)建應(yīng)用程序池。以下是 web.config。


<?xml version="1.0" encoding="utf-8"?>

<configuration>

    <system.webServer>

        <handlers>

            <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />

        </handlers>

        <aspNetCore processPath=".\YourGoApp.exe" />

    </system.webServer>

</configuration>


查看完整回答
反對 回復(fù) 2021-11-22
  • 2 回答
  • 0 關(guān)注
  • 256 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號