部署Office Web Apps Server并配置其与SharePoint 2013的集成

来源:互联网 发布:刷搜狗手机点击优化 编辑:程序博客网 时间:2024/05/20 01:09

关于Office Web Apps Server 2013的安装和部署,首先需要了解的就是硬件需求,其实也不用多想,和Sharepoint 2013的需求相同,8-12G的内存,相对来说你使用4 – 8G内存 对该组件进行测试也是没有问题的!

其次需要注意的是该产品不能同Sharepoint 安装在同一台机器上,在安装该产品的时候会自动检测先决条件以及是否安装了Sharepoint,如果其中一个不满足都不可以继续安装,同时TechNet的官方文档中也建议都部署在一台全新的 System上的!

注:使用一般的机器在测试环境中,硬盘、内存都会抗议。

接下来开始部署Office Web Apps Server 2013(后简称OWAS 2013):

1、 将OWAS 2013 加入到域:

PS C:\Users\Administrator> Add-Computer -DomainName itcydomain.com -Credential itcydomain.com\administrator                 #执行后会交互提示你输入密码

警告: 所做的更改将在重新启动计算机 OWAS-TEMPLATE 后生效。

使用Powershell 加服务器加入到域
使用Powershell 加服务器加入到域

2、 安装OWAS 2013 依赖程序(部分程序的安装我使用了Poweshell 命令完成,如果你参照该命令,建议你使用管理员身份运行powershell,至于以下角色和功能GUI的安装方式,本文不提供操作过程):

.net Framework 4.5 ----->> 需要安装

.net Framework 4.5 安装
.net Framework 4.5 安装

Windows6.1-KB2592525-x64 ----->> Windows系统DirectWrite应用程序更新 仅Windows Server 2008 R2 需要安装

Windows6.1-KB2506143-x64 ----->> Windows Server 补丁 本补丁为powershell 3.0 仅Windows Server 2008 R2 需要安装(如未安装.net Framework 4.5 则无法安装该补丁程序)

Windows6.1-KB2592525-补丁安装
Windows6.1-KB2592525-补丁安装


注:如果你通过GUI无法完成补丁的安装,你可以通过参考以下命令完成补丁的安装:

D:\>expand Windows6.1-KB2592525-x64.msu -F:*.\sourceMicrosoft (R) 文件扩展实用程序版本 6.1.7600.16385版权所有 (c) Microsoft Corporation。保留所有权利。未指定 Windows6.1-KB2592525-x64.msu 的目标位置。D:\>expand Windows6.1-KB2592525-x64.msu -F:* .\sourceMicrosoft (R) 文件扩展实用程序版本 6.1.7600.16385版权所有 (c) Microsoft Corporation。保留所有权利。正在将 .\source\WSUSSCAN.cab 添加到提取队列正在将 .\source\Windows6.1-KB2592525-x64.cab 添加到提取队列正在将 .\source\Windows6.1-KB2592525-x64-pkgProperties.txt 添加到提取队列正在将 .\source\Windows6.1-KB2592525-x64.xml 添加到提取队列正在展开文件 ....完成展开文件 ...总共 4 个文件。D:\>cd sourceD:\source>pkgmgr /ip /m:Windows6.1-KB2592525-x64.cab

IIS 7.0 ----->> 需要安装

PS C:\Users\Administrator> Import-Module ServerManagerPS C:\Users\Administrator> 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

这里标出安装的参数 以供初次接触的朋友了解熟悉:

Import-Module ServerManager导入服务器管理器模块Web-ServerWeb 服务器(IIS)Web-WebServerWeb 服务器Web-Common-Http常见 HTTP 功能Web-Static-Content静态内容 Web-App-Dev应用程序开发Web-Asp-NetASP.NETWeb-Net-Ext.NET 扩展性Web-ISAPI-ExtISAPI 扩展Web-ISAPI-FilterISAPI 筛选器Web-Includes在服务器端的包含文件Web-Security安全性Web-Windows-AuthWindows 身份验证Web-Filtering请求筛选Web-Stat-Compression静态内容压缩Web-Dyn-Compression动态内容压缩Web-Mgmt-ConsoleIIS 管理控制台


墨迹功能 ----->> 需要安装(安装完毕需重启)

PS C:\Users\Administrator> Add-WindowsFeature Ink-Handwriting,IH-Ink-Support警告: [安装] 成功: [墨迹和手写服务] 墨迹支持。 必须重新启动此服务器以完成安装过程。警告: [安装] 成功: [墨迹和手写服务] 手写识别。 必须重新启动此服务器以完成安装过程。Success Restart Needed Exit Code Feature Result------- -------------- --------- --------------True    Yes            Succes... {墨迹支持, 手写识别}

参数标注:

墨迹和手写服务     Ink-Handwriting墨迹支持           IH-Ink-Support

3、 安装配置OWAS 2013(装载光盘后双击就行,木有太多操作)


安装Office Web Apps Server
安装Office Web Apps Server

安装完毕后,你需要建立一个场,该场可不是Sharepoint 上的场,是OWAS的服务器场。

PS C:\Users\Administrator> Import-Module OfficeWebAppsPS C:\Users\Administrator> New-OfficeWebAppsFarm –InternalURL  http://owas-template –AllowHttp –EditingEnabl

过程输出:

将 EditingEnabled 设置为 TRUE。只有当此 Office Web Apps Server 的用户具有允许使用 Office Web Apps进行编辑的许可证时,您才应该这样做。是否继续执行此操作?[Y] 是(Y)  [N] 否(N)  [S] 挂起(S)  [?] 帮助 (默认值为“Y”): yFarmOU                            :InternalURL                       : http://owas-template/ExternalURL                       :AllowHTTP                         : TrueSSLOffloaded                      : FalseCertificateName                   :EditingEnabled                    : TrueLogLocation                       : C:\ProgramData\Microsoft\OfficeWebApps\Data\Logs\ULSLogRetentionInDays                : 7LogVerbosity                      :Proxy                             :CacheLocation                     : C:\ProgramData\Microsoft\OfficeWebApps\Working\dMaxMemoryCacheSizeInMB            : 75DocumentInfoCacheSize             : 5000CacheSizeInGB                     : 15ClipartEnabled                    : FalseTranslationEnabled                : FalseMaxTranslationCharacterCount      : 125000TranslationServiceAppId           :TranslationServiceAddress         :RenderingLocalCacheLocation       : C:\ProgramData\Microsoft\OfficeWebApps\Working\waccacheRecycleActiveProcessCount         : 5AllowCEIP                         : FalseExcelRequestDurationMax           : 300ExcelSessionTimeout               : 450ExcelWorkbookSizeMax              : 10ExcelPrivateBytesMax              : -1ExcelConnectionLifetime           : 1800ExcelExternalDataCacheLifetime    : 300ExcelAllowExternalData            : TrueExcelWarnOnDataRefresh            : TrueOpenFromUrlEnabled                : FalseOpenFromUncEnabled                : TrueOpenFromUrlThrottlingEnabled      : TruePicturePasteDisabled              : TrueRemovePersonalInformationFromLogs : FalseAllowHttpSecureStoreConnections   : FalseMachines                          : {OWAS-TEMPLATE}

标注:

Import-Module OfficeWebApps加载Office Web Apps管理命令集New-OfficeWebAppsFarm –InternalURL http:// owas-template –AllowHttp –EditingEnabled创建服务器场参数解释:–InternalURL 指定的 URL 是运行 Office Web Apps Server 的服务器的名称–AllowHttp 参数将服务器场配置为使用 HTTP –EditingEnabled 参数在 Office Web Apps 中启用编辑


验证OWAS 2013 的安装

访问:http://owas-template/hosting/discoveryThis XML file does not appear to have any style information associated with it. The document tree is shown below.<wopi-discovery><net-zone name="internal-http"><app name="Excel" favIconUrl="http://owas-template/x/_layouts/images/FavIcon_Excel.ico" checkLicense="true"><action name="view" ext="ods" default="true" urlsrc="http://owas-template/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/><action name="view" ext="xls" default="true" urlsrc="http://owas-template/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/><action name="view" ext="xlsb" default="true" urlsrc="http://owas-template/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>"/>


配置sharepoint 2013 能够使用 OWAS 2013 :

打开sharepoint 2013 命令行管理程序,执行以下powershell 命令

PS C:\Users\Administrator> New-SPWOPIBinding -ServerName owas-template -AllowHTTP


注:如果不指定-AllowHTTP 则Sharepoint 2013 将尝试使用HTTPS与OWAS服务器场通信,并且此命令不会执行成功。

查看针对Sharepoint绑定的WOPI区域:

默认情况下,SharePoint Server 2013 使用 internal-https 区域。通过运行以下命令来确认这是当前区域:

PS C:\Users\Administrator> Get-SPWOPIZoneinternal-https

将WOPI 区域更改为 internal-http

默认情况下,您通过本文所得到的配置在上一条命令中得到的回执是“internal-https” 则运行以下命令可将区域更改为 internal-http。你必须进行此更改,因为 SharePoint 2013 的区域必须匹配 Office Web Apps Server 服务器场的区域。

PS C:\Users\Administrator> Set-SPWOPIZone -zone "internal-http"确认新的区域为internal-httpPS C:\Users\Administrator> Get-SPWOPIZoneinternal-http

同时为了在测试环境中可以将sharepoint 2013 与 OWAS 2013 结合使用,还需要将AllowOAuthOverHttp 设置更改为 True

PS C:\Users\Administrator> (Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttpFalse

如上所示,如果你的回执也是False请执行如下命令将其设置为True,默认肯定是False

PS C:\Users\Administrator> $config = (Get-SPSecurityTokenServiceConfig)PS C:\Users\Administrator> $config.AllowOAuthOverHttp = $truePS C:\Users\Administrator> $config.Update()

请运行如下命令验证AllowOAuthOverHttp是否设置为True。

PS C:\Users\Administrator> (Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttpTrue


验证功能性是否正常:

预览文档:

office web apps server 功能验证
office web apps server 功能验证


新建Office 办公文件:

office web apps server 功能验证 新建Office 办公文件
office web apps server 功能验证 新建Office 办公文件

在浏览器中查看:

office web apps server 功能验证 在浏览器中编辑
office web apps server 功能验证 在浏览器中编辑

sharepoint编辑界面:

office web apps server 功能验证 在浏览器中编辑
office web apps server 功能验证 在浏览器中编辑


http://www.7yit.com/lm/server/win08/2013/0809/5297.html

测试到这里就结束了,希望这篇文章对你有帮助!

断开 SharePoint 2013 与 Office Web Apps Server 的连接

如果您出于任何原因需要断开 SharePoint 2013 与 Office Web Apps Server 的连接,请使用以下命令示例。

Remove-SPWOPIBinding -All:$true

在SharePoint 2013上,如果之前已经关联过Office Web Apps场的话,这里无需重新进行关联(因为地址和以前是一样的),只需要增加PDF文件类型的支持即可。

使用SharePoint 2013 PowerShell命令行工具,执行:

   1: New-SPWOPIBinding -ServerName <ServerName> -Application WordPdf

停用原有的Office Web Apps场。Office Web Apps Server在更新的时候,必须是offline的状态。
在服务器中,使用PowerShell执行:
   1: // 加载管理模块
   2: Import-Module OfficeWebApps
   4: // 将当前机器移出场
   5: Remove-OfficeWebAppsMachine

http://msdn.microsoft.com/zh-cn/ff431687

0 0