Windows Server AppFabric正式版已經釋出。今天測試一下,把域環境中安裝遇到的問題告訴大家,隻針對緩存服務這一塊,希望大家少走一些彎路。
1、首先下載下傳安裝Windows Server AppFabric,位址:http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=467e5aa5-c25b-4c80-a6d2-9f8fb0f337d2#filelist,選擇你的作業系統版本對應的安裝包,是如果windows 2008 32位系統的選擇WindowsServerAppFabricSetup_x86_6.0.exe。
2、安裝中注意的問題,首先要安裝Windows 管理架構核心 (WinRM 2.0 和 Windows PowerShell 2.0)位址:http://support.microsoft.com/kb/968929。windows 2008 r2可以不用安裝。
3、在安裝中安裝程式自動設定windows2008防火牆端口。
4、安裝成功後可以,以管理身份運作“緩存管理 Windows PowerShell”,在cmd視窗下添加緩存伺服器通路使用者,指令:Grant-CacheAllowedClientAccount domain\username。
5、運作Get-CacheAllowedClientAccounts 指令檢視使用者是否添加成功。
6、運作Start-CacheCluster ,開始運作Windows Server AppFabric服務,可以在伺服器管理中-服務-找到"AppFabric 緩存服務"設為自動啟動。
到此伺服器安裝完成,現在特别說明在IIS中如果設定才能通路Windows Server AppFabric
1、如果系統是windows2003請先安裝Windows Server 2003 Distributed Cache Client,下載下傳位址:http://www.microsoft.com/downloads/details.aspx?FamilyID=d1ca30df-0e84-4388-8636-2ef87380600c&displaylang=en
2、如果是windows2008系統,請在Windows Server AppFabric程式時選擇用戶端安裝。
3、如果不安裝用戶端将會出現:
異常類型: FileNotFoundException
異常消息: 未能加載檔案或程式集“Microsoft.WindowsFabric.Data.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一個依賴項。系統找不到指定的檔案。
4、安裝好用戶端後。設定IIS的應用程式池,将應用程式池的辨別設為你添加的通路Windows Server AppFabric的使用者。如果不設定辨別IIS将不能通路Windows Server AppFabric進而出現遠端tcp關閉錯誤。
到此你就可以使用了Windows Server AppFabric緩存了。
參考資料:Windows Server AppFabric Domain Security:http://blogs.msdn.com/b/endpoint/archive/2010/06/20/endpoint-tv-windows-server-appfabric-domain-security.aspx
呵,呵。第一次寫試著發到首頁,因為這方面的資料很少。但願能給大家提供幫助。寫的不好大家多包涵。
在幫朋友開發的網站http://www.kxdy.net/中就使用了Windows Server AppFabric。