关于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 后生效。
2、 安装OWAS 2013 依赖程序(部分程序的安装我使用了Poweshell 命令完成,如果你参照该命令,建议你使用管理员身份运行powershell,至于以下角色和功能GUI的安装方式,本文不提供操作过程):
.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 则无法安装该补丁程序)
注:如果你通过GUI无法完成补丁的安装,你可以通过参考以下命令完成补丁的安装:
D:\>expand Windows6.1-KB2592525-x64.msu -F:*.\source
Microsoft (R) 文件扩展实用程序版本 6.1.7600.16385
版权所有 (c) Microsoft Corporation。保留所有权利。
未指定 Windows6.1-KB2592525-x64.msu 的目标位置。
D:\>expand Windows6.1-KB2592525-x64.msu -F:* .\source
Microsoft (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 source
D:\source>pkgmgr /ip /m:Windows6.1-KB2592525-x64.cab
IIS 7.0 ----->> 需要安装
PS C:\Users\Administrator> Import-Module ServerManager
PS C:\Users\Administrator> Add-WindowsFeature Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-App-Dev,We
b-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,Web-Security,Web-Windows-Auth,Web-Filtering,Web-Stat-C
ompression,Web-Dyn-Compression,Web-Mgmt-Console
这里标出安装的参数 以供初次接触的朋友了解熟悉:
Import-Module ServerManager 导入服务器管理器模块
Web-Server Web 服务器(IIS)
Web-WebServer Web 服务器
Web-Common-Http 常见 HTTP 功能
Web-Static-Content 静态内容
Web-App-Dev 应用程序开发
Web-Asp-Net ASP.NET
Web-Net-Ext .NET 扩展性
Web-ISAPI-Ext ISAPI 扩展
Web-ISAPI-Filter ISAPI 筛选器
Web-Includes 在服务器端的包含文件
Web-Security 安全性
Web-Windows-Auth Windows 身份验证
Web-Filtering 请求筛选
Web-Stat-Compression 静态内容压缩
Web-Dyn-Compression 动态内容压缩
Web-Mgmt-Console IIS 管理控制台
墨迹功能 ----->> 需要安装(安装完毕需重启)
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(装载光盘后双击就行,木有太多操作)
安装完毕后,你需要建立一个场,该场可不是Sharepoint 上的场,是OWAS的服务器场。
PS C:\Users\Administrator> Import-Module OfficeWebApps
PS 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”): y
FarmOU :
InternalURL : http://owas-template/
ExternalURL :
AllowHTTP : True
SSLOffloaded : False
CertificateName :
EditingEnabled : True
LogLocation : C:\ProgramData\Microsoft\OfficeWebApps\Data\Logs\ULS
LogRetentionInDays : 7
LogVerbosity :
Proxy :
CacheLocation : C:\ProgramData\Microsoft\OfficeWebApps\Working\d
MaxMemoryCacheSizeInMB : 75
DocumentInfoCacheSize : 5000
CacheSizeInGB : 15
ClipartEnabled : False
TranslationEnabled : False
MaxTranslationCharacterCount : 125000
TranslationServiceAppId :
TranslationServiceAddress :
RenderingLocalCacheLocation : C:\ProgramData\Microsoft\OfficeWebApps\Working\waccache
RecycleActiveProcessCount : 5
AllowCEIP : False
ExcelRequestDurationMax : 300
ExcelSessionTimeout : 450
ExcelWorkbookSizeMax : 10
ExcelPrivateBytesMax : -1
ExcelConnectionLifetime : 1800
ExcelExternalDataCacheLifetime : 300
ExcelAllowExternalData : True
ExcelWarnOnDataRefresh : True
OpenFromUrlEnabled : False
OpenFromUncEnabled : True
OpenFromUrlThrottlingEnabled : True
PicturePasteDisabled : True
RemovePersonalInformationFromLogs : False
AllowHttpSecureStoreConnections : False
Machines : {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/discovery
This 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-SPWOPIZone
internal-https
将WOPI 区域更改为 internal-http
默认情况下,您通过本文所得到的配置在上一条命令中得到的回执是“internal-https” 则运行以下命令可将区域更改为 internal-http。你必须进行此更改,因为 SharePoint 2013 的区域必须匹配 Office Web Apps Server 服务器场的区域。
PS C:\Users\Administrator> Set-SPWOPIZone -zone "internal-http"
确认新的区域为internal-http
PS C:\Users\Administrator> Get-SPWOPIZone
internal-http
同时为了在测试环境中可以将sharepoint 2013 与 OWAS 2013 结合使用,还需要将AllowOAuthOverHttp 设置更改为 True
PS C:\Users\Administrator> (Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
False
如上所示,如果你的回执也是False请执行如下命令将其设置为True,默认肯定是False
PS C:\Users\Administrator> $config = (Get-SPSecurityTokenServiceConfig)
PS C:\Users\Administrator> $config.AllowOAuthOverHttp = $true
PS C:\Users\Administrator> $config.Update()
请运行如下命令验证AllowOAuthOverHttp是否设置为True。
PS C:\Users\Administrator> (Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
True
验证功能性是否正常:
预览文档:
新建Office 办公文件:
在浏览器中查看:
sharepoint编辑界面:
测试到这里就结束了,希望这篇文章对你有帮助!
断开 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