若要在測試環境中部署 Office Web AppsServer 2013,您安裝必備軟件、 服務器角色、 服務和功能,而後安裝Office Web Apps Server 2013。下一步,您可使用 Windows PowerShell 來建立一個單服務器Office Web Apps Server 農場。瀏覽器
在開始以前服務器
咱們建議您查看的要求和指導方針,在繼續以前,計劃Office Web Apps Server 2013 中所描述的。咱們還建議您開始WindowsServer2008R2 服務包 1 或WindowsServer2012 的全新安裝。新安裝的服務器上,是否一個物理服務器或虛擬機實例,減小了配置問題而引發的Office Web Apps Server 2013 的較早版本的可能性。甚至您刪除現有的Office Web Appserver 農場和卸載先前版本的 Office Web Apps Server 2013,當您安裝新版本,若是不使用新安裝的服務器啓動時,您可能仍是有問題。ide
部署在測試環境中的單服務器 Office Web Apps Server 農場測試
此處的信息將幫助您安裝一個單服務器Office Web Apps Server 農場,在測試環境中使用 HTTP。你不須要證書或負載平衡器中,但您須要專用的物理服務器或未運行任何其餘服務器應用程序的虛擬機實例。您可使用此Office Web Apps Server 農場向SharePoint 2013 年和 Exchange Server2013,提供Office Web Apps 功能,但應注意下列限制:rest
環境能夠只能由內部用戶訪問。配置沒有外部 URL。 環境不能用 Lync Server 2013,這要求 HTTPS。orm
其餘部署方案例如那些使用 HTTPS、 負載平衡和內部和外部 Url,將提供在未來對這篇文章的更新。server
第 1 步:準備要運行 Office Web AppsServer 2013 的測試服務器部署
1. 爲 Office Web Apps Server 2013 安裝必備軟件cmd
2. 安裝 Office Web Apps Server 2013虛擬機
3. 配置 Windows Power Shell 並導入的Office Web Apps 模塊
步驟2:建立Office Web Apps Server 農場
下面的示例中的代碼建立一個新的Office Web Apps Server 農場,由一臺服務器組成。您爲–InternalURL指定的URL 是服務器的運行Office Web Apps Server 2013,如http://servername的名稱。–AllowHttp參數配置農場使用HTTP,和–EditingEnabled參數使SharePoint 2013 並使用它時在Office Web Apps 中進行編輯。
New-OfficeWebAppsFarm -InternalURL http://WAC –AllowHttp –EditingEnabled
New-OfficeWebAppsFarm –Verbose -InternalURL http://WAC –EditingEnabled–AllowHttp
第3 步:驗證已成功建立Office Web Apps Server 農場
農場建立後,WindowsPower Shell 提示中顯示有關農場的詳細信息。若要驗證Office Web Apps Server 2013 已安裝並正確配置,使用Web 瀏覽器訪問Office Web Apps Server 2013 發現的URL,以下面的示例中所示。當您配置你的Office Web Apps Server 農場,它後面跟着/hosting/discovery 分配給InternalUrl 參數的值組成的發現URL。
http://servername/hosting/discovery
若是Office Web Apps Server 2013 將按預期工做,您應該看到一個 Web 應用開放平臺接 (WOPI)-在您的 Web 瀏覽器中發現 XML 文件。該文件的前幾行應相似於下面的示例:
-
-
-
注意:
若是組件。 NETFramework3.5 被安裝,而後刪除,當您運行 Office Web Apps cmdlet 時,您可能會看到"500 Web 服務異常"500.21 — — 內部服務器錯誤"消息。若要解決此問題,從提高的命令提示符來清理設置,能夠防止 Office Web Apps Server 正常運行下面的示例命令:
%systemroot%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe-iru
iisreset /restart /noforce
步驟 4: 配置主機
如今準備爲主機提供 Office Web Apps 的功能,經過 HTTP 在農場。任務: 參考
這些程序被引用本文前面部分中描述的部署方案。有關部署方案,以確保正確配置您的服務器,請參閱。
爲 Office Web Apps Server 2013安裝必備軟件
要運行 Office Web Apps Server 2013 的全部服務器上執行下列步驟
準備運行 WindowsServer2008R2 的服務器 安裝了下列軟件: WindowsServer2008R2 Service 1 Pack 和全部必需的更新 .NET Framework 4.5 鋼筋混凝土 Windows Power Shell 3.0 下一步,打開 Windows Power Shell 提示以管理員的身份,並運行下面的示例命令,要安裝須要的角色和服務。
爲 WindowsServer2008R2
Import-Module ServerManager
而後再運行:
Add-WindowsFeatureWeb-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,Web-Security,Web-Windows-Auth,Web-Filtering,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Console,Ink-Handwriting,IH-Ink-Support
準備運行 WindowsServer2012 的服務器 你須要在運行 Office Web Apps Server 的服務器上導入 Windows Power Shell 的 Office Web Application 模塊。要這樣作,打開做爲管理員的 Windows Power Shell 提示符處,鍵入下面的命令,而後按 ENTER。
爲 WindowsServer2012
Import-Module ServerManager
而後再運行:
Add-WindowsFeatureWeb-Server,Web-Mgmt-Tools,Web-Mgmt-Console,Web-WebServer,Web-Common-Http,Web-Default-Doc,Web-Static-Content,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Security,Web-Filtering,Web-Windows-Auth,Web-App-Dev,Web-Net-Ext45,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,InkandHandwritingServices
而後再運行:
Import-Module OfficeWebApps
導入模塊將 OfficeWebServercmdlet 加載到您的Windows PowerShell 的實例。要驗證已加載 cmdlet,PowerShell 提示符下鍵入如下命令,而後按 ENTER:
Get-Command "*Office*"
Office Web Apps 模塊中的全部cmdlet 的列表將顯示。要得到與cmdlet 的任何幫助,請鍵入如下命令:
Get-Help cmdletname
設置OpenFromUrl爲true
Set-OfficeWebAppsFarmOpenFromUrlEnabled