OWAS搭建部署配置步骤
汪瑞阳
【摘要】
Office Online Server 是 Office Web Apps Server 的下一个版本。部署 Office
Online Server 涉及安装某些必备软件和运行一些 Microsoft PowerShell 命令,但总的来说,此过程设计得相当简单。本文将指导完成准备服务器的过程,并提供了配置本地 Office Online Server 场的 Microsoft
PowerShell 命令。
本文档仅介绍Office Online Server的基础安装部署步骤,不包括安装部署完成后更详细的服务器参数配置。
【正文】
域控制器:WIN16-TS-DC01,IP:10.10.10.10,Windows server 2016;
OWAS服务器:WIN16-TS-OWA01,IP;10.10.10.11(已加域),Windows server 2016;
根据测试情况,Office Online Server的安装服务器必须是 Windows Server 2012 R2 或 Windows Server 2016(请注意,Windows Server 2016 需要 Office Online Server 2017 年 4 月或更高版本)。
建议OWAS服务器系统版本使用Windows server 2012 R2,避免Windows server 2016版本在安装前置条件软件时出现的前置问题,诸如.net Framework 4.5安装冲突造成后续部分软件无法安装的问题等。
1、
2、
Windows server 2012 R2:
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,NET-Framework-Features,NET-Framework-Core,NET-HTTP-Activation,NET-Non-HTTP-Activ,NET-WCF-HTTP-Activation45,Windows-Identity-Foundation,Server-Media-Foundation
Windows server 2016:
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,NET-Framework-Features,NET-Framework-45-Features,NET-Framework-Core,NET-Framework-45-Core,NET-HTTP-Activation,NET-Non-HTTP-Activ,NET-WCF-HTTP-Activation45,Windows-Identity-Foundation,Server-Media-Foundation
如果出现提示,可能需要重启服务器;
3、
Windows server 2012 R2:
a) .NET Framework 4.5.2;
b) Visual C++ Redistributable Packages for Visual Studio 2013;
c) Visual C++ Redistributable for Visual Studio 2015;
d) Microsoft.IdentityModel.Extention.dll;
Windows server 2016:
a) Visual C++ Redistributable Packages for Visual Studio 2013
b) Visual C++ Redistributable for Visual Studio 2015
针对于Office Online Server镜像的获取,对于企业生产环境,office online server镜像获取需要从批量许可服务中心 (VLSC) 下载 Office Online Server。以下步骤仅是测试环境安装镜像的步骤。
1、 前置软件安装完成后,找到下载好的office online
server 2016安装镜像,右键装载;
2、 以管理员身份运行step.exe程序;
3、 勾选接受协议,点击继续;
4、 指定文件安装路径,点击立即安装;
5、 等待office online server 2016安装完成后,点击关闭;
6、
借助 Office Online Server 语言包,用户可以查看基于 Web 的 Office 多语言文件,无论是从 SharePoint 文档库打开,还是从 Outlook 网页版打开,都能查看。
从 Microsoft 下载中心下载 Office Online Server 2016语言包后,运行wacserverlanguagepack.exe安装包,等待安装完成;
1、
如果仅将 Office Online Server 部署用于测试或内部使用,并且您不需要向
Skype for Business Server 2015 提供 Office Online Server 功能,则此程序适合。
运行以下命令创建一个新的Office Online Server 场:
Import-Module
-Name OfficeWebApps
New-OfficeWebAppsFarm
-InternalURL "http://10.10.10.11" -AllowHttp -EditingEnabled
参数:
-InternalURL 是运行 Office Online Server 的服务器名称或IP;
-AllowHttp 配置要使用 HTTP 的场;
-EditingEnabled 为可选,在 Office Online 中启用编辑(如果它与 SharePoint Server
2016 一起使用)。
2、
http://10.10.10.11/hosting/discovery
如果成功安装,则会在
Web浏览器中看到 Web 应用程序开放平台接口 (WOPI)发现 XML文件。该文件的前几行应类似以下示例,运行效果如下图:
3、
对于大多数生产环境,建议对其安全功能使用 HTTPS。同样,如果要向 Skype for Business Server
2015 提供 Office Online Server 功能,则需要 HTTPS。
运行以下命令创建一个新的Office Online
Server 场:
Import-Module
-Name OfficeWebApps
New-OfficeWebAppsFarm
-InternalUrl "https://10.10.10.11" -ExternalUrl
"https://wacweb01.wry.com" -CertificateName "OfficeWebApps
Certificate" -EditingEnabled
参数:
-InternalURL 是运行 Office Online Server 的服务器名称或IP;
-ExternalURL 是可以在 Internet 上访问的 FQDN或者IP;
-AllowHttp 配置要使用 HTTP 的场;
-EditingEnabled 为可选,在 Office Online 中启用编辑(如果它与 SharePoint Server 2016 一起使用)。
4、
https://10.10.10.11/hosting/discovery
如果成功安装,则会在 Web浏览器中看到 Web 应用程序开放平台接口 (WOPI)发现 XML文件。