Office Online Server2016 build and deployment (online editor)

At least two servers, a domain controller, a deployment of Office Online Server

https://docs.microsoft.com/zh-cn/officeonlineserver/office-online-server

 Outline

Use office online feature, you first need is two hosts, one of which is to install office Online Services, another host is required as a domain controller, the main responsible for the management office online host

WOPI Server -> Control domain host

WOPI Client -> install office online host

Office Online Server Compatible Operating Systems

?? 64-bit version of Windows Server 2012 R2

?? 64-bit version of Windows Server 2016 (required in April 2017 or later versions of Office Online Server)

 

A few things to Office Online Server installation to note

??  Do not run Office Online Server  install any other server applications on the server. Including Exchange Server, SharePoint Server, Skype for Business Server and SQL Server. If the server is out, you can run Office Online Server in a virtual machine on which one of these servers.

??  Do not install any services or roles depend on Web Server (IIS) role on ports 80, 443 or 809 , because the Office Online Server will periodically delete the Web application on these ports.

??  Do not install any version of Office . If you have installed, you must uninstall it before you install Office Online Server.

??  Do not install Office Online Server on a domain controller . It will not run on the server containing the Active Directory Domain Services (AD DS) of

 

Step a: Configure the domain controller server host domain controller []

Configuration Manager  -> Add Roles and Features  ->  select the Active Directory Domain Services  ->  installation waiting Do not turn off  ->  click on the "Add this server to a domain controller"  ->  select "Add New Forest"  ->  Enter the root domain name The oos.com  ->  password  ->  installation, automatic restart

Prerequisite checking this page, there is a problem, because there is no account password

In the cmd window set about the administrator's user name and password and password

net user administrator "Abc123"

net user administrator /passwordreq:yes

 

 

 

 

 

 

Step two: Office Online Server installation and service roles [host] OfficeOnline

Administrator, open Microsoft PowerShell prompt, and then run this example command to install the required roles and services.

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

Office Online Server安装所需依赖以下软件包:

.NET Framework 4.5.2

Visual C++ Redistributable Packages for Visual Studio 2013

Visual C++ Redistributable for Visual Studio 2015

Microsoft.IdentityModel.Extention.dll - MicrosoftIdentityExtensions-64.msi

Office Online Server程序

Office Online Server语言包

执行上面操作后依次安装Office Online Server程序与语言包

 

步骤三:域控服务器关联配置【OfficeOnline主机设置加入域】

检查一下两台主机的IP:

域控制器主机:172.16.159.134

OfficeOnline主机:172.16.159.135

1、在OfficeOnline主机中打开网络属性,找到ipv4的配置,配置DNS为"域控制器的IP"

 

2、把OfficeOnline服务器加入到域服务器的域中,如下图操作,接下来选择隶属于"域",设置域就是之前安装域控制主机的时候设置的是yazid.com,这里直接填入,继续回弹出输入账号密码,这里输入域控制器的用户名和密码即可

 

3、在域控服务器把OfficeOnline主机添加进管理中:打开域控服务器 -> 服务器管理器 -> 管理 -> 添加服务器 -> 立即查找 -> 选中OfficeOnline主机添加 -> 点击左侧的所有服务器,显示联机即可

 

 

步骤四:部署使用 HTTP 的单服务器Office Online Server Farm

(如果 Microsoft PowerShell 在您运行时无法识别 New-OfficeWebAppsFarm cmdlet,您可能需要导入 OfficeWebApps 模块。请使用此命令:> Import-Module -Name OfficeWebApps)

 第 1 步:创建 Office Online Server 场

使用 New-OfficeWebAppsFarm 命令创建一个包含一台服务器的新 Office Online Server 场,如以下示例中所示

命令

New-OfficeWebAppsFarm -InternalURL "http://WIN-EMU743VLII3.yazid.com/" –ExternalUrl "http://172.16.159.135/" -AllowHttp:$true -EditingEnabled:$true -ClipartEnabled:$true

Set-OfficeWebAppsFarm –ExternalUrl "http://172.16.159.135/" -AllowHttp:$true -EditingEnabled:$true -ClipartEnabled:$true

参数

-InternalURL 是运行 Office Online Server 的服务器名称,例如 http://servername。

-AllowHttp 配置要使用 HTTP 的场。

-EditingEnabled 在 Office Online 中启用编辑(如果它与 SharePoint Server 2016 一起使用)。Skype for Business Server 2015 或 Exchange Server 不使用此参数,因为这些主机不支持编辑。

Get-OfficeWebAppsFarm 返回当前服务器所属的 OfficeWebAppsFarm 对象的详细信息

New-OfficeWebAppsFarm 在本地计算机上创建新 Office Online Server 场

Set-OfficeWebAppsFarm 配置现有 Office Online Server 场的设置

Remove-OfficeWebAppsMachine 从 Office Online Server 场中删除现有服务器(删除Farm)

注意:在执行创建服务场时可能出现提示用户名或者密码不正确,这时需要把两台服务器密码改成相同,并且重启之后即可

 

步骤 2:验证是否成功创建 Office Online Server 场

在创建服务器场后,将在 Microsoft PowerShell 提示符中显示有关服务器场的详细信息。若要验证是否正确安装并配置了 Office Online Server,请使用 Web 浏览器访问 Office Online Server 发现 URL是您在配置 Office Online Server 服务器场时指定的 InternalUrl 参数,后跟 /hosting/discovery,例如:http://servername/hosting/discovery,如果 Office Online Server 按预期运行,您应该在 Web 浏览器中看到 Web 应用程序开放平台接口 (WOPI) 协议发现 XML 文件。

 

步骤 3:配置 Secure Store 访问(可选)

如果计划使用 HTTP 环境中 SharePoint 服务器的 Secure Store Service,则需要设置可启用此服务的参数。(如果未计划将 SharePoint 服务器中的 Secure Store 与 Excel Online 一起使用,则可跳过此步骤)

当 Office Online Server 试图刷新工作簿或存储在 HTTP 路径中的 ODC 文件的数据时,如果尚未配置 Office Online Server 以允许通过 HTTP 的 Secure Store 连接,则数据刷新将失败。

使用 Set-OfficeWebAppsFarm cmdlet 配置通过 HTTP 的 Secure Store 设置:

Set-OfficeWebAppsFarm -AllowHttpSecureStoreConnections:$true

请记住将通过 HTTP 以明文形式传送工作簿的内容或 ODC 文件。数据连接工作簿和 ODC 文件包含数据库连接信息,并可以包含密码。

 

步骤 4:配置主机

服务器场现在已经可以通过 HTTP 为主机提供 Office Online 功能。有关如何配置主机的详细信息,请查阅以下文章。

配置 SharePoint Server 2016 的 Office Online Server

Office Online Server integration with Exchange(Office Online Server 与 Exchange 的集成)

 

步骤五:部署Wopi项目

使用说明:https://www.netnr.com/doc/code/4964095842855914510

wopi相关文档:https://wopi.readthedocs.io/en/latest/


可以参照以下wopi代码:

https://github.com/netnr/WopiHost

https://github.com/marx-yu/WopiHost

https://github.com/OfficeDev/PnP-WOPI

https://github.com/thebitllc/WopiBasicEditor

https://code.msdn.microsoft.com/office/Building-an-Office-Web-f98650d6

https://github.com/Microsoft/Office-Online-Test-Tools-and-Documentation

https://github.com/oec2003/OWAEditorSample.git

 

Guess you like

Origin www.cnblogs.com/lhxsoft/p/12071215.html