微軟官方參考地址https://technet.microsoft.com/zh-cn/library/jj219455.aspx,建議參考官方說明。
注意:每一步進行完成后重啟服務器!!!
一、 安裝Office Web Apps的服務器除了Office Web Apps之外,不能安裝其他應用。包括不能安裝Office,lync,,sharepoint等應用,即要單獨部署。(如果安裝過以上軟件要確保卸載干凈);
二、 安裝.NET Framework 4.5.2

三、 以管理員身份打開 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,NET-Framework-Features,NET-Framework-Core,NET-HTTP-Activation,NET-Non-HTTP-Activ,NET-WCF-HTTP-Activation45
注:如果這一步命令報錯,出現這種報錯信息,意味着你的本機沒有源路徑,找不到對應的安裝源,這個時候要將win server 2012 r2系統iso文件裝載,這里我選擇的是D盤,因為winserver的系統裝載在D盤這個盤符下,就在命令最后加上源文件的路徑,-Source D:\Sources\SxS,報錯內容為如圖所示:

四、 安裝Office Web Apps Server

五、 安裝Office Web Apps Server SP1

六、 安裝Office Web Apps Server語言包

七、 部署 Office Web Apps Server 場
1、創建 Office Web Apps Server 服務器場
以管理員身份打開 Windows PowerShell 提示符
New-OfficeWebAppsFarm -InternalURL "http://servername" -AllowHttp -EditingEnabled

2、驗證是否成功創建了 Office Web Apps Server 服務器場
http://servername/hosting/discovery

這個集成的過程,就是啟用Office Web Apps服務器場來渲染/編輯SharePoint文檔庫中的Office文檔。
這個配置也很簡單,打開SharePoint的PowerShell腳本窗口,執行兩句話:
1: New-SPWOPIBinding -ServerName <WacServerName> -AllowHTTP
注:WacServerName為OWA服務器的IP,並且沒有<>
2: Set-SPWopiZone internal-http
第一句話是在SharePoint場和Office Web Apps場之間建立關系,其中的AllowHTTP參數和之前的概念是一樣的;
第二句話,是配置區域的鏈接方式,區域分為internal和external,協議分為http和https,默認是internal + https,這里我們使用internal-http,以便和之前配置Office Web Apps服務器場的時候相匹配。
然后就可以用了。
