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。