将软件更新应用到 Office Online ServerApply software updates to Office Online Server

摘要: 说明如何将软件更新或新版本应用到 Office Online Server 场。Summary: Explains how to apply software updates or new versions to an Office Online Server farm.

目标用户:IT 专业人员Audience: IT Professionals

Microsoft 会定期提供一系列软件更新和新版本,可帮助改进服务器的安全性、性能和可靠性。本文将说明如何将软件更新或新版本应用到 Office Online Server 场中的各个服务器。On a regular basis, Microsoft makes a series of software updates and new versions available to help improve server security, performance, and reliability. This article describes how to apply software updates or new versions to individual servers in an Office Online Server farm.

重要

需要获得有关在桌面设备或移动设备上使用 Office Online 的帮助吗? 可以在 Office.com 上搜索"Office Online",查找此类信息。Are you looking for help with Office Online on your desktop or mobile device? You can find this information by searching for "Office Online" on Office.com.

注意

Office Online Server 不支持使用自动更新过程应用 Office Online Server 更新或新版本。这是因为对 Office Online Server 的更新必须以特定方式应用,如本文中所述。如果自动应用 Office Online Server 更新,则用户可能无法在 Office Online 中查看或编辑文档。如果出现这种情况,你必须重新构建 Office Online Server 服务器场。要重新构建服务器场,必须使用 Remove-OfficeWebAppsMachine 从场中删除 Office Online Server,使用添加或删除程序卸载 Office Online Server,然后按照 部署 Office Online Server 中所述的步骤重新安装 Office Online Server。> 重要的是要查看 规划 Office Online Server 的更新一节中的指南并制定 Office Online Server 场的更新流程。Applying Office Online Server updates or new versions by using the automatic updates process isn't supported with Office Online Server. This is because updates to an Office Online Server must be applied in a specific way, as described in this article. If Office Online Server updates are applied automatically, users may be unable to view or edit documents in Office Online. If this happens, you have to rebuild your Office Online Server farm. To rebuild a farm, you must remove the Office Online Server from the farm by using Remove-OfficeWebAppsMachine, uninstall Office Online Server by using Add or remove programs, and then reinstall Office Online Server by following the steps that are described in Deploy Office Online Server. After you have reinstalled, apply the update by following the steps that are described in this article. > It is important that you review the guidelines in Planning updates for Office Online Server and establish an update process for the Office Online Server farm.

准备工作Before you begin

为 Office Online Server 发布的更新将更新 Office Online Server 和所有已安装的 Office Online Server 语言包。不提供 Office Online Server 语言包的单独更新。Updates that are released for Office Online Server will update Office Online Server and any Office Online Server language packs that are installed. There are no separate updates for Office Online Server language packs.

作为更新过程的一部分,您需要重新创建 Office Online Server 场。若要准备重新创建 Office Online Server 场,请通过运行 Microsoft PowerShell cmdlet Get-OfficeWebAppsFarm 查看当前 Office Online Server 场的属性,并查看 New-OfficeWebAppsFarm 的参数。用于 New-OfficeWebAppsFarm 的参数应该与第一次设置 Office Online Server 场时使用的参数相同。As part of the update process, you'll have to re-create the Office Online Server farm. To prepare to re-create the Office Online Server farm, review your current Office Online Server farm properties by running the Microsoft PowerShell cmdlet Get-OfficeWebAppsFarm and review the parameters for New-OfficeWebAppsFarm. The parameters that you use for New-OfficeWebAppsFarm should be the same parameters that you used when you first set up the Office Online Server farm.

请注意,更新完服务器场后,需要重新添加任一已为 Excel Online 配置的 数据模型服务器Note that when you've completed updating your farm, you need to re-add any data model servers that you had configured for Excel Online.

将软件更新或新版本应用到单个服务器 Office Online Server 场Apply software updates or new versions to a single server Office Online Server farm

要将软件更新或新版本应用到单个服务器 Office Online Server 场,请从场中删除 Office Online Server,应用软件更新或新版本,然后重新创建 Office Online Server 场。如果你的 Office Online Server 场中只有一个服务器,更新服务器时用户将无法使用 Office Online。所以应考虑在不重要或不忙碌的时段更新 Office Online Server。To apply software updates or new versions to a single server Office Online Server farm, remove the Office Online Server from the farm, apply the software update or new version, and re-create the Office Online Server farm. If you have only one server in your Office Online Server farm, users won't be able to use Office Online while you are updating the server. So consider updating the Office Online Server during either non-critical or non-business hours.

将软件更新或新版本应用到单个服务器场To apply software updates or new versions to a single server farm

  1. 在要应用软件更新的 Office Online Server 上,以管理员身份打开 Microsoft PowerShell 提示符并运行以下命令。On the Office Online Server that you want to apply the software update to, open the Microsoft PowerShell prompt as an administrator and run the following command.
Remove-OfficeWebAppsMachine
  1. 如果这是从 批量许可服务中心 (VLSC) 下载的新版 Office Online Server,必须在安装新版本之前卸载现有版本。If this is a new release of Office Online Server that you downloaded from the Volume Licensing Service Center (VLSC), then you must uninstall the existing version before you install the new version.

    (如果这是来自 Microsoft Update 的更新,则无需卸载 Office Online Server。)(If this is an update from Microsoft Update, then there's no need to uninstall Office Online Server.)

  2. 在该服务器上安装 Office Online Server 更新或新版本。在收到系统提示时,重新启动服务器。Install the Office Online Server update or new version on that server. If prompted, restart the server.

  3. 以管理员身份打开 Microsoft PowerShell 提示符,并运行 New-OfficeWebAppsFarm cmdlet,以重新创建 Office Online Server 场。为 -InternalURL 指定的 URL 是运行 Office Online Server 的服务器名称,例如 https://Contoso-OOS。在此示例中,使用对旧 Office Online Server 场使用的相同名称。其他参数与第一次创建 Office Online Server 场时使用的参数相同。例如,如果用于 SharePoint Server 2016,-EditingEnabled 参数在 Office Online 中启用编辑。Open the Microsoft PowerShell prompt as an administrator and run the New-OfficeWebAppsFarm cmdlet to re-create an Office Online Server farm. The URL you specify for -InternalURL is the name of the server that runs Office Online Server, such as https://Contoso-OOS. In this case, you would use the same name that you used for the previous Office Online Server farm. Use the same additional parameters that you used when you first created the Office Online Server farm. For example, the the -EditingEnabled parameter enables editing in Office Online when it is used together with SharePoint Server 2016.

    以下示例中的代码新建了一个名为 https://Contoso-OOS 的 Office Online Server 场。The code in the following example creates a new Office Online Server farm named https://Contoso-OOS.

New-OfficeWebAppsFarm -InternalURL "https://Contoso-OOS" -EditingEnabled
<span data-ttu-id="cc9f0-142">[New-OfficeWebAppsFarm](https://docs.microsoft.com/zh-CN/powershell/module/officewebapps/new-officewebappsfarm?view=officewebapps-ps) 中描述了配置翻译服务、代理服务器、剪贴画支持以及联机查看器的其他参数。</span><span class="sxs-lookup"><span data-stu-id="cc9f0-142">Additional parameters that configure translation services, proxy servers, clipart support, and Online Viewers are described in  [New-OfficeWebAppsFarm](https://docs.microsoft.com/en-us/powershell/module/officewebapps/new-officewebappsfarm?view=officewebapps-ps).</span></span>

将软件更新或新版本应用到多个 Office Online Server 场Apply software updates or new versions to a multiple Office Online Server farm

要将软件更新或新版本应用到多个 Office Online Server 场,首先从负载平衡器池和场中删除其中一个服务器,应用软件更新或新版本,并创建更新的 Office Online Server 场。然后删除和更新 Office Online Server 场中的其余服务器,并将它们加入到新的更新场中。当新的场中有足够的服务器支持当前流量时,将平衡流量加载到新场。通过使用此更新过程,用户可以打开和编辑 Office Online 中的文档,无需中断。To apply software updates or new versions to a multiple Office Online Server farm, you first remove one of the servers from the load balancer pool and from the farm, apply the software update or new version, and create an updated Office Online Server farm. Then you remove and update the remaining servers in the Office Online Server farm, and join them to the new updated farm. You load balance traffic to the new farm when you have enough servers in the new farm to support the current traffic. By using this update process, users can open and edit documents in Office Online without disruption.

将软件更新应用到多个服务器场To apply software updates to a multiple server farm

  1. 从负载平衡器池中删除要应用软件更新的 Office Online Server。Remove the Office Online Server that you want to apply the software update to from the load balancer pool.

  2. 在 Office Online Server 上,以管理员身份打开 Microsoft PowerShell 提示符并运行以下命令。On that Office Online Server, open the Microsoft PowerShell prompt as an administrator and run the following command.

Remove-OfficeWebAppsMachine
  1. 如果这是从 批量许可服务中心 (VLSC) 下载的新版 Office Online Server,必须在安装新版本之前卸载现有版本。If this is a new release of Office Online Server that you downloaded from the Volume Licensing Service Center (VLSC), then you must uninstall the existing version before you install the new version.

    (如果这是来自 Microsoft Update 的更新,则无需卸载 Office Online Server。)(If this is an update from Microsoft Update, then there's no need to uninstall Office Online Server.)

  2. 在该服务器上安装 Office Online Server 更新或新版本。在收到系统提示时,重新启动服务器。Install the Office Online Server update or new version on that server. If prompted, restart the server.

  3. 以管理员身份打开 Microsoft PowerShell 提示符,并通过使用 cmdlet New-OfficeWebAppsFarm 创建已更新的 Office Online Server 场。为 -InternalURL 指定的 URL 是运行 Office Online Server 的服务器的名称,例如 https://Contoso-OOS。在此情况下,使用相同名称命名现有 Office Online Server 场。其他参数与第一次创建 Office Online Server 场时使用的参数相同。例如,-EditingEnabled 参数与 SharePoint Server 2016 一起使用时会在 Office Online 中启用编辑。Open the Microsoft PowerShell prompt as an administrator and create an updated Office Online Server farm by using the cmdlet New-OfficeWebAppsFarm. The URL you specify for -InternalURL is the name of the server that runs Office Online Server, such as https://Contoso-OOS. In this case, you use the same name as the existing Office Online Server farm. Use the same additional parameters that you used when you first created the Office Online Server farm. For example, the -EditingEnabled parameter enables editing in Office Online when it is used together with SharePoint Server 2016.

    以下示例中的代码新建了一个名为 https://Contoso-OOS 的 Office Online Server 场。The code in the following example creates a new Office Online Server farm named https://Contoso-OOS.

New-OfficeWebAppsFarm -InternalURL "https://Contoso-OOS"  -EditingEnabled
<span data-ttu-id="cc9f0-162">[New-OfficeWebAppsFarm](https://docs.microsoft.com/zh-CN/powershell/module/officewebapps/new-officewebappsfarm?view=officewebapps-ps) 中描述了配置翻译服务、代理服务器、剪贴画支持以及联机查看器的其他参数。</span><span class="sxs-lookup"><span data-stu-id="cc9f0-162">Additional parameters that configure translation services, proxy servers, clipart support, and Online Viewers are described in  [New-OfficeWebAppsFarm](https://docs.microsoft.com/en-us/powershell/module/officewebapps/new-officewebappsfarm?view=officewebapps-ps).</span></span>
  1. 根据 Office Online Server 场中拥有的服务器数量,将平衡流量加载到新的场中。您可以延迟这个步骤,直到有更多更新的服务器加入到场中。Depending on how many servers that you have in the Office Online Server farm, load balance traffic to the new farm. You may delay this step until you have more updated servers to join the farm.

  2. 对于服务场中其余的每个服务器,请执行以下步骤。For each remaining server in the farm, follow these steps.

  3. 从负载平衡器池中删除下一个 Office Online Server。Remove the next Office Online Server from the load balancer pool.

  4. 在该服务器上安装 Office Online Server 更新。如果收到系统提示,则重新启动服务器。Install the Office Online Server update on that server. If prompted, restart the server.

  5. 以管理员身份打开 Microsoft PowerShell 提示符,并运行以下命令。 -MachineToJoin 参数将当前服务器添加到现有 Office Online Server 场。在此种情况下,要将服务器添加到更新的 Office Online Server 场。因此,请使用更新的 Office Online Server 场中的一个服务器的计算机名称。Open the Microsoft PowerShell prompt as an administrator and run the following command. The -MachineToJoin parameter adds the current server to an existing Office Online Server farm. In this case, you want to add the server to the updated Office Online Server farm. So use the computer name of one of the servers in the updated Office Online Server farm.

New-OfficeWebAppsMachine -MachineToJoin "server1.contoso.com"

另请参阅See also

Remove-OfficeWebAppsMachineRemove-OfficeWebAppsMachine

New-OfficeWebAppsMachineNew-OfficeWebAppsMachine

New-OfficeWebAppsFarmNew-OfficeWebAppsFarm

Get-OfficeWebAppsFarmGet-OfficeWebAppsFarm

Office 联机服务器发布计划Office Online Server release schedule