套用軟體更新至 Office Online ServerApply software updates to Office Online Server

摘要: 說明如何對 Office Online 伺服器伺服器陣列套用軟體更新或新版本。Summary: Explains how to apply software updates or new versions to an Office Online Server farm.

對象:IT 專業人員Audience: IT Professionals

Microsoft 定期提供了一系列的軟體更新和新版本來協助改善伺服器的安全性、效能和可靠性。On a regular basis, Microsoft makes a series of software updates and new versions available to help improve server security, performance, and reliability. 本文說明如何套用軟體更新或新版本的 Office Online 伺服器伺服器陣列中的個別伺服器。This article describes how to apply software updates or new versions to individual servers in an Office Online Server farm.

重要

您在尋找在桌上型電腦或行動裝置上使用 Office Online 的協助嗎?Are you looking for help with Office Online on your desktop or mobile device? 您可以在 Office.com 上搜尋 "Office Online" 來尋找此資訊。You can find this information by searching for "Office Online" on Office.com.

警告

與 Office Online Server 不支援使用自動更新程序來套用 Office Online 伺服器更新或新版本。Applying Office Online Server updates or new versions by using the automatic updates process isn't supported with Office Online Server. 這是因為 Office Online 伺服器 的更新必須以本文所述的特定方式套用。This is because updates to an Office Online Server must be applied in a specific way, as described in this article. 如果自動套用 Office Online 伺服器 更新,使用者可能無法在 Office Online 檢視或編輯文件。If Office Online Server updates are applied automatically, users may be unable to view or edit documents in Office Online. 如果發生此情況,您必須重建 Office Online 伺服器 伺服器陣列。If this happens, you have to rebuild your Office Online Server farm. 若要重建伺服器陣列,您必須移除伺服器陣列中的 Office Online 伺服器,藉由移除 OfficeWebAppsMachine、 解除安裝 Office Online 伺服器使用新增或移除程式],並重新 Office Online Server 依照下列步驟部署 Office Online 伺服器中所述。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. > 請務必檢閱 <規劃 Office Online 伺服器更新中的指導方針,建立 Office Online 伺服器伺服器陣列的更新程序。> 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 伺服器 發行的更新將會更新 Office Online 伺服器 及任何已安裝的 Office Online 伺服器 語言套件。沒有專為 Office Online 伺服器 語言套件而設的個別更新。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 伺服器伺服器陣列。要準備重建 Office Online 伺服器 伺服器陣列時,檢閱您目前的 Office Online 伺服器 伺服器陣列內容,方法是執行 Microsoft PowerShell Cmdlet Get-OfficeWebAppsFarm 並檢閱 New-OfficeWebAppsFarm 的參數。您用於 New-OfficeWebAppsFarm 的參數,應該與您第一次設定 Office Online 伺服器 伺服器陣列時使用的參數相同。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 伺服器伺服器陣列套用軟體更新或新版本,移除 Office Online 伺服器從伺服器陣列、 套用的軟體更新或新版本,並重新建立 Office Online 伺服器伺服器陣列。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. 如果您的 Office Online 伺服器 伺服器陣列裡只有一台伺服器,在伺服器更新期間,使用者將無法使用 Office Online。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. 因此請考慮在非關鍵或非營業時間更新 Office Online 伺服器。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 伺服器 上,以系統管理員身分開啟 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 伺服器的新的版本,然後您必須解除安裝現有版本之前安裝新版本。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 伺服器更新或新版本。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 伺服器 伺服器陣列。Open the Microsoft PowerShell prompt as an administrator and run the New-OfficeWebAppsFarm cmdlet to re-create an Office Online Server farm. 您為 -InternalURL 指定的 URL,是執行 Office Online 伺服器 的伺服器名稱,例如 https://Contoso-OOSThe URL you specify for -InternalURL is the name of the server that runs Office Online Server, such as https://Contoso-OOS. 在此情況下,您會使用先前的 Office Online 伺服器 伺服器陣列所使用的相同名稱。In this case, you would use the same name that you used for the previous Office Online Server farm. 請使用您第一次建立 Office Online 伺服器 伺服器陣列時所使用的相同額外參數。Use the same additional parameters that you used when you first created the Office Online Server farm. 例如, -EditingEnabled參數可讓 SharePoint Server 2016 搭配使用時,在 Office Online 中編輯。For example, the the -EditingEnabled parameter enables editing in Office Online when it is used together with SharePoint Server 2016.

    下列範例中的程式碼會建立新的 Office Online 伺服器 伺服器陣列,名為 https://Contoso-OOS。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="e409a-142">< [New-OfficeWebAppsFarm](https://docs.microsoft.com/en-us/powershell/module/officewebapps/new-officewebappsfarm?view=officewebapps-ps)>中將說明其他可設定翻譯服務、Proxy 伺服器、美工圖案支援與線上檢視程式的參數。</span><span class="sxs-lookup"><span data-stu-id="e409a-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 伺服器伺服器陣列套用軟體更新或新版本,請先從負載平衡器集區及伺服器陣列移除其中一部伺服器、 套用軟體更新或新版本,並建立更新過的 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. 接著將 Office Online 伺服器 伺服器陣列中剩餘的伺服器移除、更新,再加到更新過的新伺服器陣列。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. 使用此更新程序時,使用者可以在 Office Online 中開啟及編輯文件,而不會受到中斷。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 伺服器。Remove the Office Online Server that you want to apply the software update to from the load balancer pool.

  2. 在該 Office Online 伺服器 上,以系統管理員身分開啟 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 伺服器的新的版本,然後您必須解除安裝現有版本之前安裝新版本。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 伺服器更新或新版本。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 伺服器 伺服器陣列。Open the Microsoft PowerShell prompt as an administrator and create an updated Office Online Server farm by using the cmdlet New-OfficeWebAppsFarm. 您為 -InternalURL 指定的 URL,是執行 Office Online 伺服器 的伺服器名稱,例如 https://Contoso-OOSThe URL you specify for -InternalURL is the name of the server that runs Office Online Server, such as https://Contoso-OOS. 在此情況下,請使用與現有 Office Online 伺服器 伺服器陣列相同的名稱。In this case, you use the same name as the existing Office Online Server farm. 請使用您第一次建立 Office Online 伺服器 伺服器陣列時所使用的相同額外參數。Use the same additional parameters that you used when you first created the Office Online Server farm. 例如, -EditingEnabled參數可讓 SharePoint Server 2016 搭配使用時,在 Office Online 中編輯。For example, the -EditingEnabled parameter enables editing in Office Online when it is used together with SharePoint Server 2016.

    下列範例中的程式碼會建立新的 Office Online 伺服器 伺服器陣列,名為 https://Contoso-OOS。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="e409a-162">< [New-OfficeWebAppsFarm](https://docs.microsoft.com/en-us/powershell/module/officewebapps/new-officewebappsfarm?view=officewebapps-ps)>中將說明其他可設定翻譯服務、Proxy 伺服器、美工圖案支援與線上檢視程式的參數。</span><span class="sxs-lookup"><span data-stu-id="e409a-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 伺服器 伺服器陣列有多少台伺服器而定,將流量負載平衡到新的伺服器陣列。您可以將此步驟延到在伺服器陣列中加入了更多更新過的伺服器後再執行。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 伺服器。Remove the next Office Online Server from the load balancer pool.

  4. 在該伺服器上安裝 Office Online 伺服器 更新。如果出現提示,請重新啟動伺服器。Install the Office Online Server update on that server. If prompted, restart the server.

  5. 以系統管理員身分開啟 Microsoft PowerShell 提示字元,並執行下列命令。Open the Microsoft PowerShell prompt as an administrator and run the following command. -MachineToJoin 參數會將目前的伺服器新增到現有的 Office Online 伺服器 伺服器陣列。The -MachineToJoin parameter adds the current server to an existing Office Online Server farm. 在此情況下,您會想要將伺服器新增到更新的 Office Online 伺服器 伺服器陣列。In this case, you want to add the server to the updated Office Online Server farm. 因此使用更新的 Office Online 伺服器伺服器陣列中的其中一部伺服器電腦名稱。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-OfficeWebAppsMachine](https://docs.microsoft.com/en-us/powershell/module/officewebapps/remove-officewebappsmachine?view=officewebapps-ps)[Remove-OfficeWebAppsMachine](https://docs.microsoft.com/en-us/powershell/module/officewebapps/remove-officewebappsmachine?view=officewebapps-ps) [New-OfficeWebAppsMachine](https://docs.microsoft.com/en-us/powershell/module/officewebapps/new-officewebappsmachine?view=officewebapps-ps)[New-OfficeWebAppsMachine](https://docs.microsoft.com/en-us/powershell/module/officewebapps/new-officewebappsmachine?view=officewebapps-ps) [New-OfficeWebAppsFarm](https://docs.microsoft.com/en-us/powershell/module/officewebapps/new-officewebappsfarm?view=officewebapps-ps)[New-OfficeWebAppsFarm](https://docs.microsoft.com/en-us/powershell/module/officewebapps/new-officewebappsfarm?view=officewebapps-ps) [Get-OfficeWebAppsFarm](https://docs.microsoft.com/en-us/powershell/module/officewebapps/get-officewebappsfarm?view=officewebapps-ps)[Get-OfficeWebAppsFarm](https://docs.microsoft.com/en-us/powershell/module/officewebapps/get-officewebappsfarm?view=officewebapps-ps) ####

Office Online Server 發行排程Office Online Server release schedule