部署Office Web Apps Server并配置其与SharePoint 2013的集成
Remove-SPWOPIBinding -All:$true
2、設置綁定
New-SPWOPIBinding -ServerName ?owa.neoway.com.cn:88 ?-AllowHTTP
?
Office Web Apps Server 是新的 Office 服務器產品,它提供 Word、PowerPoint、Excel 和 OneNote 的基于瀏覽器的版本。單個 Office Web Apps Server 服務器場可支持通過 SharePoint 2013、Lync Server 2013、Exchange Server 2013、共享文件夾和網站訪問 Office 文件的用戶。Office Web Apps Server 適用于支持 WOPI(Web 應用程序開放平臺接口協議)的產品和服務。這些產品(稱為主機)包括 SharePoint 2013、Lync Server 2013 和 Exchange Server 2013。Office Web Apps Server 服務器場可以為多個本地主機提供 Office 服務,并且您可以隨著組織需要的增加將服務器場從一臺服務器擴展到多臺服務器。?Office Web Apps 2013是一個獨立產品,部署 SharePoint 2013,則不必像以往一樣需要優化 SharePoint 基礎架構以支持 Office Web Apps。
?
?
?
在與 SharePoint Server 2013 一起使用時,Office Web Apps Server 可提供更新版本的 Word Web App、Excel Web App、PowerPoint Web App 和 OneNote Web App。用戶可以通過在計算機和許多移動設備(例如 Windows Phone、iPhone、iPad 和 Windows 8 平板電腦)上使用受支持的 Web 瀏覽器來查看 SharePoint 庫中的 Office 文檔,有些情況下還可以編輯這些文檔。在 Office Web Apps 中的許多新功能中,改進的觸摸支持和編輯功能使 iPad 和 Windows 8 平板電腦的用戶能夠直接從其設備編輯和查看 Office 文檔。www.it165.net
?
?
?
我的實驗環境如下:
contoso-sp13.contoso.com (SharePoint 2013; OS: Windows Server 2012)
contoso-owa.contoso.com (Offie Web Apps Server 2013; OS: Windows Server 2012)
注意:Office Web Apps Server 現在是一款獨立的產品,所以不能與SharePoint Server 安裝在同一臺服務器上,需要分開安裝。也可以多臺Office Web Apps Server 組成一個服務器場,我的實驗環境只有一臺OWA 服務器。
?
第一步:準備服務器以運行?Office Web Apps Server
第二步:Office Web Apps Server?服務器場
第三步:配置SharePoint 2013 以使用 Office Web Apps
?
第一步.?準備服務器以運行?Office Web Apps Server
?
1. 以管理員身份打開 Windows PowerShell 提示符,然后運行以下示例命令來安裝必需的角色和服務。
Add-WindowsFeature Web-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
?
Windows Server 2008 R2 和Windows Server 2012 先決條件有所不同,可以參考:?http://technet.microsoft.com/zh-cn/library/jj219455.aspx
?
2. 下載并安裝 Office Web Apps Server 2012
Download link:?http://www.microsoft.com/en-us/download/details.aspx?id=35489
?
?
?
?
3.?為 Office Web Apps Server 安裝語言包, 下載鏈接:
?
http://www.microsoft.com/zh-cn/download/details.aspx?id=35490?
第二步:部署?Office Web Apps Server?服務器場
?
1.?創建 Office Web Apps Server 服務器場
在Office Web Apps Server, 打開 PowerShell, 輸入
Import-Module OfficeWebApps
?
New-OfficeWebAppsFarm?–InternalURL?“http://servername"?–AllowHttp -EditingEnabled
?
我的 OWA server 有一個 A 記錄 ‘owa.contoso.com’ 指向它, 所以我的命令行是
?
?
New-OfficeWebAppsFarm –InternalURL “http://owa.contoso.com"?–AllowHttp -EditingEnabled
?
?
?
?
2.?驗證是否成功創建了 Office Web Apps Server 服務器場
在瀏覽器中打開如下鏈接
http://servername/hosting/discovery
?
如果 Office Web Apps Server 按預期運行,您應該在 Web 瀏覽器中看到 Web 應用程序開放平臺接口 (WOPI) 發現 XML 文件。如下:
?
?
第三步:配置SharePoint 2013 以使用 Office Web Apps
?
詳細文檔可以參考:http://technet.microsoft.com/zh-cn/library/ff431687.aspx
?
這里我使用在 HTTP 的測試環境中將 SharePoint 2013 配置為使用 Office Web Apps Server
?
1.?創建 SharePoint 2013 和 Office Web Apps Server 之間的綁定
打開 SharePoint Management Shell, 輸入
?
New-SPWOPIBinding -ServerName <WacServerName> -AllowHTTP
?
?
?
?
2.?查看針對 SharePoint 綁定的 WOPI 區域
?
Get-SPWOPIZone
?
如果通過執行步驟 3 獲得的結果為?internal-https,則運行以下命令可將區域更改為?internal-http。您必須進行此更改,因為 SharePoint 2013 的區域必須匹配 Office Web Apps Server 服務器場的區域。
?
Set-SPWOPIZone –zone “internal-http”
?
通過運行以下命令來確認新的區域為?internal-http:
?
Get-SPWOPIZone
?
3.將 SharePoint 2013 中的 AllowOAuthOverHttp 設置更改為 True
?
若要在測試環境中通過 HTTP 將 SharePoint 2013 與 Office Web Apps 結合使用,您必須將 AllowOAuthOverHttp 設置為?True。否則,Office Web Apps 將不起作用。可通過運行以下示例來檢查當前狀態:
?
(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
?
如果此命令返回?False,則運行下列命令可將其設置為?True。
?
$config = (Get-SPSecurityTokenServiceConfig)
$config.AllowOAuthOverHttp = $true
$config.Update()
?
再次運行以下命令來驗證 AllowOAuthOverHttp 設置現在是否設置為?True。
?
(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
?
?
?
現在我們就可以輕松打開并且編輯一個SharePoint 2013 document library 里的office文檔了。
?
?
也可以直接在網頁上創建office 文檔
?
?
?
?
測試到這里就結束了,希望這篇文章對你有幫助!
轉載于:https://www.cnblogs.com/jackalliu/p/4498245.html
總結
以上是生活随笔為你收集整理的部署Office Web Apps Server并配置其与SharePoint 2013的集成的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: windows下使用git管理githu
- 下一篇: 从零开始学Xamarin.Forms(四