在 Exchange 組織中安裝 Office Online ServerInstall Office Online Server in an Exchange organization

Exchange 2016 累積更新1 (CU1) 或更新版本以及 Exchange 2019 的選擇性先決條件是在組織中的一或多部伺服器上安裝 Office Online Server。Office Online Server 可讓使用者在 Outlook 網頁版 (以前稱為 Outlook Web App) 中查看支援的檔案附件,而無需事先下載,也無需在本機安裝該程式。如果未安裝Office Online Server,Outlook 使用者需要將附件下載到其本機電腦,然後在本機應用程式開啟。An optional prerequisite for Exchange 2016 Cumulative Update 1 (CU1) or later, as well as for Exchange 2019, is the installation of Office Online Server on one or more servers in your organization. Office Online Server enables users to view supported file attachments within Outlook on the web (formerly known as Outlook Web App) without downloading them first and without having a local installation of the program. Without Office Online Server installed, Outlook users need to download attachments to their local computer and then open them in a local application.

注意

Office Online 伺服器 可供下載作為大量授權合約的一部分。 如果您沒有大量授權合約,您可以略過這個步驟中的指示。但是,若未安裝 Office Online 伺服器,Outlook 使用者必須下載附件至其本機電腦,才能檢視它們;他們將無法在 Outlook 檢視它們。Office Online Server is available for download as part of a volume licensing agreement. If you don't have a volume license agreement, you can skip the instructions in this step. However, without Office Online Server installed, Outlook users will need to download attachments to their local computer to view them; they won't be able to view them in Outlook.

您可以在 Exchange 2016 和更新版本中的兩個地方設定 Office Online 伺服器端點︰在組織層級以及在信箱伺服器層級。您設定端點的位置取決於組織的大小以及伺服器和使用者的位置。You can configure an Office Online Server endpoint in two places in Exchange 2016 and later: at the organization level, and at the Mailbox server level. Where you configure the endpoint depends on the size of your organization and the location of your servers and users.

  • 組織:有幾個原因會讓您在組織層級設定 Office Online Server 端點︰Organization: There are a couple of reasons why you might configure the Office Online Server endpoint at the organization level:

    • 單一伺服器或單一位置部署:如果您所有的 Exchange 2016 信箱伺服器位於相同的位置,且您不打算依地理位置分散 Office Online Server 伺服器,您可以在組織層級設定端點。Single-server or single-location deployment: You can configure the endpoint at the organization level if all of your Exchange 2016 Mailbox servers are in the same location and you don't plan on having geographically distributed Office Online Server servers.

    • 大型部署的後援:如果信箱伺服器上設定的端點無法使用,您可以在組織層級將端點設定為後援。如果 Office Web Apps 伺服器無法使用,用戶端會嘗試連線到在組織層級設定的端點。Fallback for large deployments: You can configure endpoint at the organization level as a fallback if the endpoint configured on a Mailbox server isn't available. If an Office Web Apps server isn't available, the client will try to connect to the endpoint configured at the organization level.

      附註Notes:

      • 如果您在組織中有 Exchange 2013 伺服器,請勿在組織層級設定端點。這樣做會引導 Exchange 2013 伺服器使用 Office Online 伺服器 伺服器。這是不受支援的。If you have Exchange 2013 servers in your organization, don't configure an endpoint at the organization level. Doing so will direct Exchange 2013 servers to use the Office Online Server server. This isn't supported.

      • Office Online Server 不支援在 Outlook 網頁版中預覽 S/MIME 郵件的附件。Previewing attachments in S/MIME messages in Outlook on the web isn't supported by Office Online Server.

  • 信箱伺服器:如果想要在兩個或以上的 Office Online Server 伺服器之間散發用戶端要求,如果想要在地理上散發 Office Online Server 伺服器,或如果組織中有 Exchange 2013,請在 Exchange 信箱伺服器層級設定端點。當您在伺服器層級設定端點時,位於該伺服器上的信箱會傳送要求給設定的 Office Online Server 伺服器。Mailbox server: If you want to distribute client requests between two or more Office Online Server servers, if you want to geographically distribute Office Online Server servers, or if you have Exchange 2013 in your organization, configure the endpoints at the Exchange Mailbox server level. When you configure an endpoint at the server level, mailboxes located on that server will send requests to the configured Office Online Server server.

如果您希望網路外部的使用者在 Outlook 中檢視支援的檔案附件,Office Online 伺服器 必須能夠從網際網路存取。TCP 連接埠 443 必須能在防火牆上開啟並轉送到 Office Online 伺服器 伺服器。如果您部署多個 Office Online 伺服器 伺服器,每一部伺服器都需要其本身的網域全名 (FQDN)。每一部伺服器也必須能透過 TCP 連接埠 443 從網際網路存取。If you want users outside of your network to view supported file attachments in Outlook, Office Online Server needs to be accessible from the Internet. TCP port 443 needs to be opened on your firewall and forwarded to the Office Online Server server. If you deploy more than one Office Online Server server, each server needs its own fully qualified domain name (FQDN). Each server also needs to be accessible from the Internet via TCP port 443.

Office Online Server 系統需求Office Online Server system requirements

Office Online 伺服器 需要下列動作來安裝︰Office Online Server requires the following to install:

Office Online 伺服器 無法安裝在 Exchange 伺服器、SharePoint 伺服器、Active Directory 網域控制站或任何安裝現有應用程式的其他電腦上。Office Online Server can't be installed on an Exchange server, SharePoint server, Active Directory domain controller, or any other computer with existing applications installed.

安裝 Office Online 伺服器 必要條件Install Office Online Server prerequisites

若要安裝 Office Online 伺服器 必要條件,請執行下列動作:To install Office Online Server prerequisites, do the following:

  1. 安裝 .NET Framework 4.5.2。Install .NET Framework 4.5.2.

  2. 執行下列命令,以安裝必要的作業系統功能:Install the required operating system features by running the following command:

    Install-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, Windows-Identity-Foundation
    
  3. 請在安裝 Windows 功能之後將電腦重新開機。Reboot the computer after the Windows features have been installed.

安裝 Office Online ServerInstall Office Online Server

若要安裝 Office Online 伺服器,請在要安裝的電腦上執行下列動作:To install Office Online Server, do the following on the computer where you want to install it:

  1. 大量授權服務中心 下載 Office Online Server。Download Office Online Server from the Volume License Service Center.

    請注意:Office Online Server 是從大量授權服務中心下載 Office 專業增強版 2016 的一部分。如果您有資格使用 Office Online Server 但卻沒有大量授權服務中心的存取權,則可以使用下列選項:Note: Office Online Server is part of the downloads for Office Professional Plus 2016 in the Volume License Service Center. If you qualify for Office Online Server but don't have access to the Volume License Servicing Center, you have the following options:

    • 大量授權或 Open 客戶可以連絡他們的支援中心Volume License or Open customers can contact their Support Center.

    • 直接客戶可以從其 Microsoft 365 系統管理中心提交要求或連絡客戶支援Direct customers can submit a request from their Microsoft 365 admin center or contact support.

  2. 巡覽至下載 Office Online 伺服器 的位置並執行 setup.exe。Navigate to the location where you downloaded Office Online Server and run setup.exe.

  3. 請依循 Office Online Server 安裝精靈,選取安裝位置,然後按一下 [立即安裝]Follow the Office Online Server setup wizard, select an installation location and then click Install Now.

  4. 如果想安裝 Office Online 伺服器 伺服器語言套件,請移至 Office Web Apps Server 的語言套件If you want to install Office Online Server server language packs, go to Language Packs for Office Web Apps Server.

  5. 取得並匯入 SSL 憑證與 Office Online 伺服器 伺服器的網域全名 (FQDN)。如果您的組織設定為分割 DNS,您只需要在憑證上設定一個 FQDN。例如,oos.contoso.com。如果您有不同的內部和外部 FQDN,您必須同時在憑證上設定兩個 FQDN。例如,oos.internal.contoso.com 和 oos.contoso.com。Obtain and import an SSL certificate with the fully qualified domain name(s) (FQDN) of the Office Online Server server. If your organization is configured for split DNS, you only need to configure one FQDN on the certificate. For example, oos.contoso.com. If you have different internal and external FQDNs, you'll need to configure both FQDNs on the certificate. For example, oos.internal.contoso.com and oos.contoso.com.

  6. 設定 DNS 記錄將憑證上的 FQDN 指向您的 Office Online 伺服器 伺服器。如果您對內部和外部使用者有不同的 DNS 伺服器,您必須在每個伺服器上設定適當的 FQDN。Configure DNS records to point the FQDN(s) on the certificate to your Office Online Serverserver. If you have different DNS servers for internal and external users, you'll need to configure the appropriate FQDN on each server.

  7. 開啟 Windows PowerShell 並執行下列命令。當您執行命令時,請將範例 FQDN 和憑證易記名稱取代為您自己的名稱。Open Windows PowerShell and run the following commands. When you run the commands, replace the example FQDNs and certificate friendly name with your own.

    New-OfficeWebAppsFarm -InternalURL "https://oos.contoso.com" -ExternalURL "https://oos.contoso.com" -CertificateName "Office Online Server Preview Certificate"`
    

    注意

    您可以設定不同的內部和外部 URL,但是在下一個步驟中您會看到您只能為 Exchange 設定一個 URL。在此情況下,如果您在下一個步驟中使用內部 URL,此功能只能在內部運作,外部使用者會遇到非預期的錯誤。如果您使用外部 URL,此功能僅適用於外部使用者,內部使用者會遇到非預期的錯誤。You can configure different internal and external URLs, but in the next step you'll see that you can only configure one URL for Exchange. In this case, if you use the internal URL in the next step, this function will only work internally and external users will get an unexpected error. If you use the external URL, this function will only work for external users and internal users will get an unexpected error.

在郵件伺服器層級設定 Office Online Server 端點Configure the Office Online Server endpoint at the Mailbox server level

設定好 Office Online 伺服器 伺服器之後,請在 Exchange 2016 伺服器上執行下列動作。這樣可讓 Outlook 傳送要求到 Office Online 伺服器 伺服器。After you've configured the Office Online Server server, do the following on your Exchange 2016 server. This will allow Outlook to send requests to the Office Online Server server.

  1. 開啟 Exchange 管理命令介面並執行下列命令。將範例伺服器名稱和 URL 取代為您自己的。Open the Exchange Management Shell and run the following command. Replace the example server name and URL with your own.

    Set-MailboxServer MBX -WacDiscoveryEndpoint "https://oos.contoso.com/hosting/discovery"
    
  2. 執行下列命令,以重新啟動 MsExchangeOwaAppPool。Restart the MsExchangeOwaAppPool by running the following command.

    Restart-WebAppPool MsExchangeOwaAppPool
    

在組織層級設定 Office Online 伺服器 端點Configure the Office Online Server endpoint at the organization level

設定好 Office Online 伺服器 伺服器之後,請在 Exchange 2016 伺服器上執行下列動作。這樣可讓 Outlook 傳送要求到 Office Online 伺服器 伺服器。After you've configured the Office Online Server server, do the following on your Exchange 2016 server. This will allow Outlook to send requests to the Office Online Server server.

  1. 開啟 Exchange 管理命令介面並執行下列命令。將範例 URL 取代為您自己的。Open the Exchange Management Shell and run the following command. Replace the example URL with your own.

    Set-OrganizationConfig -WacDiscoveryEndpoint "https://oos.internal.contoso.com/hosting/discovery"
    

    重要

    如果您在組織中有 Exchange 2013 伺服器,請勿在組織層級設定端點。這樣做會引導 Exchange 2013 伺服器使用 Office Online 伺服器 伺服器。這是不受支援的。If you have Exchange 2013 servers in your organization, don't configure an endpoint at the organization level. Doing so will direct Exchange 2013 servers to use the Office Online Server server. This isn't supported.

  2. 執行下列命令,以重新啟動 MsExchangeOwaAppPool。Restart the MsExchangeOwaAppPool by running the following command.

    Restart-WebAppPool MsExchangeOwaAppPool