Sharepoint 2013 整合 Office Web Apps Server 2013

简介:

关于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:*.\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(装载光盘后双击就行,木有太多操作)


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

安装完毕后,你需要建立一个场,该场可不是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 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 功能验证 在浏览器中编辑









本文转自 lgpqdwjh 51CTO博客,原文链接:http://blog.51cto.com/itchenyi/1316569,如需转载请自行联系原作者
目录
相关文章
【Azure App Service】使用Microsoft.Office.Interop.Word来操作Word文档,部署到App Service后报错COMException
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (0x80040154 (REGDB_E_CLASSNOTREG)).
391 2
【Azure App Service】PowerShell脚本批量添加IP地址到Web App允许访问IP列表中
Web App取消公网访问后,只允许特定IP能访问Web App。需要写一下段PowerShell脚本,批量添加IP到Web App的允许访问IP列表里!
339 2
|
缓存 前端开发 API
探索PWA(Progressive Web Apps)的无限可能
探索PWA(Progressive Web Apps)的无限可能
1106 8
|
JavaScript 安全
SharePoint Online 部署SPFx Web部件
【8月更文挑战第10天】在SharePoint Online中部署SPFx Web部件需先安装Node.js及Yeoman等工具,通过Yo生成器创建项目。开发Web部件后,使用`gulp`命令构建、打包并生成.sppkg文件。接着,在SharePoint管理中心的应用程序目录上传并部署该解决方案包至目标网站。最后,通过编辑页面插入Web部件进行测试,确保遵循最佳实践并维护更新。
319 1
|
API 网络架构 C++
SharePoint Online SPFx Web部件绑定数据
【7月更文挑战第6天】在Markdown格式下,以下是关于创建SharePoint Online SPFx Web部件绑定数据步骤的摘要: 1. 创建数据列表。 2. 使用VS Code打开Web部件。 3. 定义列表模型(如`IList`和`IListItem`接口)。 4. 引入`spHttpClient`以执行REST API请求。 5. 实现`_getListData()`方法,调用REST服务获取列表数据。 6. 设计`_renderList()`方法来渲染数据。 7. 在`render()`方法中获取并渲染数据到Web部件。
197 4
|
缓存 编解码 前端开发
探索PWA(Progressive Web Apps)的无限可能
探索PWA(Progressive Web Apps)的无限可能
446 0
|
Shell PHP Windows
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.
312 0
|
Linux 应用服务中间件 网络安全
【Azure 应用服务】查看App Service for Linux上部署PHP 7.4 和 8.0时,所使用的WEB服务器是什么?
【Azure 应用服务】查看App Service for Linux上部署PHP 7.4 和 8.0时,所使用的WEB服务器是什么?
213 0
|
Linux Python
【Azure 应用服务】Azure App Service For Linux 上实现 Python Flask Web Socket 项目 Http/Https
【Azure 应用服务】Azure App Service For Linux 上实现 Python Flask Web Socket 项目 Http/Https
368 0
|
存储 安全 网络安全
【Azure 环境】使用Azure中的App Service部署Web应用,以Windows为主机系统是否可以启动防病毒,防恶意软件服务呢(Microsoft Antimalware)?
【Azure 环境】使用Azure中的App Service部署Web应用,以Windows为主机系统是否可以启动防病毒,防恶意软件服务呢(Microsoft Antimalware)?
299 0

热门文章

最新文章