標籤:windows 下一步 office 伺服器 虛擬機器
若要在測試環境中部署 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,當您安裝新版本,如果不使用新安裝的伺服器啟動時,您可能還是有問題。
部署在測試環境中的單伺服器 Office Web Apps Server 農場
此處的資訊將協助您安裝一個單伺服器Office Web Apps Server 農場,在測試環境中使用 HTTP。你不需要認證或Server Load Balancer器中,但您需要專用的物理伺服器或未運行任何其他伺服器應用程式的虛擬機器執行個體。您可以使用此Office Web Apps Server 農場向SharePoint 2013 年和 Exchange Server2013,提供Office Web Apps 功能,但應注意下列限制:
環境可以只能由內部使用者訪問。配置沒有外部 URL。 環境不能用 Lync Server 2013,這要求 HTTPS。
其他部署方案例如那些使用 HTTPS、 Server Load Balancer和內部和外部 Url,將提供在將來對這篇文章的更新。
第 1 步:準備要運行 Office Web AppsServer 2013 的測試伺服器
1. 為 Office Web Apps Server 2013 安裝必備軟體
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 已安裝並正確配置,使用網頁瀏覽器訪問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)-在您的 網頁瀏覽器中發現 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
本文出自 “雲昊科技” 部落格,請務必保留此出處http://yunhao.blog.51cto.com/8544825/1761911
部署Office Web Apps Server 2013