sharepoint2013- Office web app server2013详细的安装和部署

前提条件

Office web app server2013不能跟sharepoint server2013安装在同一台服务器上,若是安装在同一台服务器上将提示以下错误:html

image

后来查询资料:web

 按照官方文档的说法,和SharePoint 2013的需求相同,须要8-12GB的内存,它要求操做系统必须是Windows Server 2008 R2 SP1或者Windows Server 2012 ,而且须要安装.Net Framework 4.5等。

 根据微软的资料以下图:shell

image

从图中能够注意到两点:windows

Ø Office Web Apps 2013做为一个独立的Server,是独立于SharePoint安装的,再也不须要像SharePoint 2010的时候,须要和SharePoint服务器安装在一块儿(必定程度上节省了License的费用)。浏览器

Ø Office Web Apps 2013不只能够为SharePoint提供Office文档的渲染服务(文档支持的格式没变,不包括PDF),并且能够为微软的Exchange Server和Lync Server提供文档渲染服务,更能够为共享文件夹甚至第三方的应用提供这一服务。服务器

Office Web Apps Server和使用其服务的Server之间,是经过一个全新的WOPI(Web application Open Platform Interface)接口协议进行通讯的,其对外通道依然是HTTP/HTTPS协议。Office Web Apps Server叫作WOPI APP,而使用这个服务的,叫作WOPI Host。app

须要post

Ø Powershell V3(http://www.microsoft.com/en-us/download/details.aspx?id=29939测试

Ø .NET Framework4.5网站

Ø windows server 2008 R2 SP1

Ø Windows6.1-KB2592525-x64(http://www.microsoft.com/zh-cn/download/details.aspx?id=27929

 

Office Web App Server 2013安装

第1步骤:若是是Windows Server 2008 R2 须要首先执行以下

Import-Module ServerManager

Add-WindowsFeature Web-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

若是是windows server2012

Import-Module ServerManager

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

而后再执行以下

image

image

image

image

Office Web App Server 2013配置

image

根据此图,接下来就是建立服务器场了,这个服务器场指的不是SharePoint场,而是Office Web Apps服务器场——这个服务器场中能够包含多个Office Web Apps Server,做不一样的角色。建立的方式很简单,PowerShell:

第1步骤:

#加载Office Web Apps管理命令集,

Import-Module OfficeWebApps

第2步骤:

#建立服务器场

New-OfficeWebAppsFarm –InternalURL http://servername –AllowHttp –EditingEnabled

说明:servername为安装OWA(office web app server2013)的服务器名称

第3步骤:

#验证服务器场

http://servername/hosting/discovery

说明:

Office Web Apps Server 按预期运行,您应该在 Web 浏览器中看到 Web 应用程序开放平台接口 (WOPI) 发现 XML 文件。该文件的前几行应相似如下示例:

复制

<?xml version="1.0" encoding="utf-8" ?>

- <wopi-discovery>

- <net-zone name="internal-http">

- <app name="Excel" favIconUrl="http://servername/x/_layouts/images/FavIcon_Excel.ico" checkLicense="true">

<action name="view" ext="ods" default="true" urlsrc="http://servername/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" />

<action name="view" ext="xls" default="true" urlsrc="http://servername/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" />

<action name="view" ext="xlsb" default="true" urlsrc="http://servername/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" />

<action name="view" ext="xlsm" default="true" urlsrc="http://servername/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" />

详细请参考:

http://technet.microsoft.com/zh-cn/library/jj219455(v=office.15).aspx

我这里机器名叫:OWA

New-OfficeWebAppsFarm –InternalURL http://OWA –AllowHttp –EditingEnabled

image

选择Y后如图

image

解释:这其中须要解释的一个是AllowHttp:这个是配置是否容许经过HTTP方式访问的(默认状况下是经过HTTPS);第二个是EditingEnabled,若是须要在浏览器中编辑文档,则须要加上这个参数(另外,按照官方文档的介绍,在SharePoint中,用户是否能够在浏览器中编辑文档,是须要有单独的License配置的,这个所谓License的概念就是相似Standard CAL、Enterprise CAL的概念,只不过之前这个只能从服务器级别区分,而在2013中能够在用户级别区分了)

注意:提示安装过程会提示以下错误

image

此时只须要【添加服务器功能】以下图:

Ø 启用“墨迹支持”服务

image

image

image

安装完毕系统会自动重启服务器接着完成安装便可。

Ø 启用”windows身份验证服务

打开已经添加的web服务器IIS角色。添加角色服务,以下图:

image

image

测试office web app是否成功?在浏览器中输入:
http://servername/hosting/discovery(serverName为OWA的机器名,我这里是OWA)

若是安装后出现以下错误:

image

 

解决办法:

若是安装而后删除了 .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

 

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.mono.com" -AllowHTTP   Set-SPWopiZone internal-http

以下图:

image

image

大功告成

 

Office Web App Server 2013效果测试

上传一片word文档测试下,以下:

image

首先,Office Web Apps功能“System Account”(也就是“系统帐户”administrator)是不能用的,若是你尝试使用系统帐户的身份访问网站,并视图在线浏览一个文档的时候,会发生异常,从日志中能够看到由于服务器没法找到System Account映射的具体帐号。

 

 

 
 
转载:http://www.cnblogs.com/love007/archive/2012/10/28/2743906.html
相关文章
相关标签/搜索