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,如需转载请自行联系原作者
目录
相关文章
|
3月前
|
应用服务中间件 nginx
【报错】Failed to start A high performance web server and a reverse proxy server.
【报错】Failed to start A high performance web server and a reverse proxy server.
196 2
|
2天前
|
XML 开发框架 .NET
C#/ASP.NET应用程序配置文件app.config/web.config的增、删、改操作
C#/ASP.NET应用程序配置文件app.config/web.config的增、删、改操作
|
5天前
|
开发框架 JavaScript 安全
WIndows Server 2016 部署 Web服务(简单篇)
WIndows Server 2016 部署 Web服务(简单篇)
|
11天前
|
缓存 移动开发 前端开发
【专栏:HTML与CSS前端技术趋势篇】HTML与CSS在PWA(Progressive Web Apps)中的应用
【4月更文挑战第30天】PWA(Progressive Web Apps)结合现代Web技术,提供接近原生应用的体验。HTML在PWA中构建页面结构和内容,响应式设计、语义化标签、Manifest文件和离线页面的创建都离不开HTML。CSS则用于定制主题样式、实现动画效果、响应式布局和管理字体图标。两者协同工作,保证PWA在不同设备和网络环境下的快速、可靠和一致性体验。随着前端技术进步,HTML与CSS在PWA中的应用将更广泛。
|
14天前
|
Web App开发 缓存 前端开发
【专栏】探索前端技术WebAssembly和Progressive Web Apps(PWA)如何塑造前端开发的未来
【4月更文挑战第27天】本文探讨了WebAssembly和Progressive Web Apps(PWA)如何塑造前端开发的未来。WebAssembly是一种低级字节码格式,允许在浏览器中运行接近原生性能的代码,解决JavaScript在高性能计算上的局限。PWA则通过Service Workers等技术提升网站的离线使用和性能,提供类似原生应用的体验。这两项技术的崛起将使前端开发更高效、多样化,并推动Web应用向更离线化和本地化发展。随着5G和物联网的发展,前端技术将在边缘计算和智能设备中发挥更大作用。开发者需持续学习适应新技术,以应对这个快速变化的领域。
|
2月前
|
弹性计算 算法 应用服务中间件
倚天使用|Nginx性能高27%,性价比1.5倍,基于阿里云倚天ECS的Web server实践
倚天710构建的ECS产品,基于云原生独立物理核、大cache,结合CIPU新架构,倚天ECS在Nginx场景下,具备强大的性能优势。相对典型x86,Http长连接场景性能收益27%,开启gzip压缩时性能收益达到74%。 同时阿里云G8y实例售价比G7实例低23%,是Web Server最佳选择。
|
2月前
|
Windows
Windows Server 各版本搭建 Web 服务器实现访问本地 Web 网站(03~19)
Windows Server 各版本搭建 Web 服务器实现访问本地 Web 网站(03~19)
|
3月前
|
机器学习/深度学习 缓存 前端开发
用纯python写web app:Streamlit
一句话,Streamlit是一个可以用python编写web app的库,可以方便的动态展示你的机器学习的项目。【2月更文挑战第9天】
94 0
|
9天前
|
关系型数据库 MySQL
web简易开发(二){html5+php实现文件上传及通过关键字搜索已上传图片)}
web简易开发(二){html5+php实现文件上传及通过关键字搜索已上传图片)}
|
21小时前
|
编解码 数据库 计算机视觉
LabVIEW开发基于Web数字图像处理
LabVIEW开发基于Web数字图像处理