启用”windows身份验证”服务
打开已经添加的web服务器IIS角色。添加角色服务,如下图:
![image image](http://image98.360doc.com/DownloadImg/2016/07/0517/75359478_1.png)
![image image](http://image98.360doc.com/DownloadImg/2016/07/0517/75359478_2.png)
测试office web app是否成功?在浏览器中输入:
http://servername/hosting/discovery(serverName为OWA的机器名,我这里是OWA
如果安装后出现如下错误:
![image image](http://image98.360doc.com/DownloadImg/2016/07/0517/75359478_3.png)
解决办法:
如果安装然后删除了 .NET Framework 3.5 的组件,在运行 OfficeWebApps cmdlet 时,您可能会看到“500 Web 服务异常”或“500.21 – 内部服务器错误”消息。若要解决此问题,请从提升的命令提示符运行以下示例命令来清理阻止 Office Web Apps Server 正确运行的设置:
在命令行中输入:
%systemroot%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -iruiisreset /restart /noforce
运行后可以看到效果图:
![image image](http://image98.360doc.com/DownloadImg/2016/07/0517/75359478_4.png)
Sharepoint 2013与Office Web App Server 2013集成
这个集成的过程,就是启用Office Web Apps服务器场来渲染/编辑SharePoint文档库中的Office文档。
这个配置也很简单,打开SharePoint的PowerShell脚本窗口,执行两句话:
New-SPWOPIBinding -ServerName <WacServerName> -AllowHTTP
Set-SPWopiZone internal-http
说明:
WacServerName指定 WOPI 应用程序(如运行 Office Web Apps Server的服务器)的名称或完全限定的域名 (FQDN)。
第一句话是在SharePoint场和Office Web Apps场之间建立关系,其中的AllowHTTP参数和之前的概念是一样的;
u 该示例为在运行此 cmdlet 的当前 SharePoint 场上的 WOPI 应用程序支持的所有应用程序和文件扩展名创建绑定
New-SPWOPIBinding –ServerName “Server.corp.Contoso.com”–AllowHTTP
根据前面的图也可以把Excel,Word,PPT分配安装在3台服务器上,并以服务器场的关联起来,因此下面的例子只启用其中一个
u 该示例将 Excel 与运行此 cmdlet 的当前 SharePoint 场上的 WOPI 应用程序可对 Excel 执行的所有操作关联
New-SPWOPIBinding –ServerName “Server.corp.Contoso.com” –Application “Excel”
第二句话,是配置区域的链接方式,区域分为internal和external,协议分为http和https,默认是internal + https,这里我们使用internal-http,以便和之前配置Office Web Apps服务器场的时候相匹配。
我这里命令行是:
New-SPWOPIBinding –ServerName "owa.sunsrv.com" -AllowHTTP
Set-SPWopiZone internal-http
Set-SPWOPIZone –zone “internal-http”
$config = (Get-SPSecurityTokenServiceConfig)
$config.AllowOAuthOverHttp = $true
$config.Update()
更多详细步骤请参考:http://technet.microsoft.com/zh-cn/library/ff431687.aspx
如下图:
![image image](http://image98.360doc.com/DownloadImg/2016/07/0517/75359478_5.png)
![image image](http://image98.360doc.com/DownloadImg/2016/07/0517/75359478_6.png)
大功告成
Office Web App Server 2013效果测试
上传一片word文档测试下,如下:
![image image](http://image98.360doc.com/DownloadImg/2016/07/0517/75359478_7.png)
首先,Office Web Apps功能“System Account”(也就是“系统账户”administrator)是不能用的,如果你尝试使用系统账户的身份访问网站,并视图在线浏览一个文档的时候,会发生异常,从日志中可以看到因为服务器无法找到System Account映射的具体账号。
![sharepoint2013新体验鈥擮ffice <wbr>web <wbr>app <wbr>server2013详细的安装和部署 \](http://image98.360doc.com/DownloadImg/2016/07/0517/75359478_8.jpg)
![\](http://image98.360doc.com/DownloadImg/2016/07/0517/75359478_9.jpg)