部署 Office Web Apps ServerDeploy Office Web Apps Server

 

应用于: Office Web Apps ServerApplies to: Office Web Apps Server

摘要: 介绍如何在本地部署 Office Web Apps Server,以供 SharePoint 2013 和 Lync Server 2013 使用。Summary: Explains how to deploy Office Web Apps Server on-premises for use by SharePoint 2013 and Lync Server 2013.

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

请注意,本文介绍如何为你的企业安装 Office Web Apps Server。Note that this article covers installing Office Web Apps Server for your business. 如果要查找有关 Office 或 Office Web Apps 的个人副本的帮助,请参阅 https://support.office.comIf you're looking for help with your personal copy of Office or OfficeWebAccess_1st_CurrentVer, see https://support.office.com https://support.office.com .

部署 Office Web Apps Server 涉及安装某些必备软件和运行一些 Windows PowerShell 命令,但总的来说,此过程设计得相当简单。Deploying Office Web Apps Server involves installing some prerequisite software and running a few PowerShell_1st_NoVer commands, but overall the process is designed to be pretty straightforward. 本文将指导你完成准备服务器的过程,并提供了配置 Office Web Apps Server 场的 Windows PowerShell 命令。This article walks you through the procedures to get your servers ready, then gives you the Microsoft PowerShell commands to configure the on-premises Office Online Server farm.

本文内容:In this article:

  • 观看视频了解如何完成Watch a video to see how it’s done

  • 在开始之前,请查看这些资源Review these resources before you begin

  • 准备服务器以运行 Office Web Apps ServerPrepare servers to run Office Web Apps Server

  • 部署 Office Web Apps Server 场Deploy the Office Web Apps Server farm

  • 如果您看到“500 Web 服务异常”或“500.21 – 内部服务器错误”消息If you see “500 Web Service Exceptions” or “500.21 – Internal Server Error” messages

观看视频了解如何完成Watch a video to see how it’s done

观看以下视频了解如何在测试环境中设置 Office Web Apps Server。Watch the following video to see how to set up WAC_Server_2nd in a test environment. 你还将看到有关如何将 SharePoint 2013 配置为使用 Windows PowerShell 的预览。You’ll also see a preview of how to configure SharePoint 2013 to use Office Web Apps Server.

在测试环境中设置 Office Web Apps ServerSet up Office Web Apps Server in a test environment

在开始之前,请查看这些资源Review these resources before you begin

在开始之前,请确保您已查看这些资源:Make sure you’ve taken a look at these resources before getting started:

备注

可通过使用鼠标、键盘快捷方式或触控来完成所有 Office 2013 套件中的任务。You can complete tasks in all Office15_2nd by using a mouse, keyboard shortcuts, or touch. 要了解如何将键盘快捷方式和触控用于 Office 产品和服务,请参阅键盘快捷方式Office 触控指南For information about how to use keyboard shortcuts and touch with Office_1st_NoVer products and services, see Keyboard shortcuts https://go.microsoft.com/fwlink/p/?LinkId=249150 and Office Touch Guide https://go.microsoft.com/fwlink/p/?LinkId=253163 .

准备服务器以运行 Office Web Apps ServerPrepare servers to run Office Web Apps Server

在将运行 Office Web Apps Server 的所有服务器上执行这些过程。Perform these procedures on all servers that will run Office Web Apps Server.

图:为 Office Web Apps Server 准备服务器的步骤Figure: The steps to prepare servers for Office Web Apps Server

为 Office Web Apps Server 准备服务器的三个主要步骤。The three main steps to prepare servers for Office Web Apps Server.

步骤 1:为 Office Web Apps Server 安装必备软件Step 1: Install prerequisite software for Office Web Apps Server

Windows Server 2008 R2、Windows Server 2012 和 Windows Server 2012 R2 的必备软件略有不同。请从下方选择用于安装适合你的操作系统的正确软件的正确步骤。Windows Server 2008 R2, Windows Server 2012, and Windows Server 2012 R2 have slightly different prerequisites, so select the appropriate procedure below to install the correct ones for your operating system.

在 Windows Server 2008 R2 上On Windows Server 2008 R2

  1. 安装以下软件:Install the following software:

  2. 以管理员身份打开 Windows PowerShell 提示符,然后运行以下命令示例来安装必需的角色和服务。Open the PowerShell_1st_NoVer prompt as an administrator and run these commands to install the required roles and services.

        Import-Module ServerManager
    

    然后运行此命令:Then, run this command:

        Add-WindowsFeature Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,Web-Security,Web-Windows-Auth,Web-Filtering,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Console,Ink-Handwriting,IH-Ink-Support,NET-Framework,NET-Framework-Core,NET-HTTP-Activation,NET-Non-HTTP-Activ,NET-Win-CFAC
    

    如果出现提示,请重新启动服务器。If prompted, restart the server.

在 Windows Server 2012 上On Windows Server 2012

  1. 以管理员身份打开 Windows PowerShell 提示符,然后运行此命令示例来安装必需的角色和服务。Open the Microsoft PowerShell prompt as an administrator and run this command to install the required roles and services.

        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
    

    如果出现提示,请重新启动服务器。If prompted, restart the server.

在 Windows Server 2012 R2 上On Windows Server 2012 R2

  1. 安装以下软件:Install the following software:

  2. 以管理员身份打开 Windows PowerShell 提示符,然后运行此命令示例来安装必需的角色和服务。Open the Microsoft PowerShell prompt as an administrator and run this command to install the required roles and services.

        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
    

    如果出现提示,请重新启动服务器。If prompted, restart the server.

在将运行 Office Web Apps Server 的所有服务器上完成以下步骤。Complete these steps on any servers that will run Office Online Server.

  1. 批量许可服务中心 (VLSC) 下载 Office Web Apps Server。Download Office Online Server from the Volume Licensing Service Center (VLSC). 要下载 Office Web Apps Server,必须具有 Office Professional Plus 2013、Office 标准版 2013 或 Office for Mac 2011 许可证(批量许可协议下)。To download Office Web Apps Server you must have a license, under a Volume Licensing agreement, for Office Professional Plus 2013, Office Standard 2013, or Office for Mac 2011. 下载位于 VLSC 门户的这些 Office 产品下。The download is located under those Office products on the VLSC portal.

  2. 执行下列操作之一:Do one of the following:

    • 对于 Windows Server 2012 或 Windows Server 2012 R2,直接打开 .img 文件并运行 Setup.exeFor Windows Server 2012 or Windows Server 2012 R2, open the .img file directly and run Setup.exe.

    • 对于 Windows Server 2008 R2 SP1,使用可装入或提取 .img 文件的程序,然后运行 Setup.exeFor 2nd_WindowsServLonghorn_R2_SP1, use a program that can mount or extract .img files, then run Setup.exe.

  3. 在“阅读 Microsoft 软件许可条款”页上,选择“我接受此协议的条款”,然后选择“继续”。On the Read the Microsoft Software License Terms page, select I accept the terms of this agreement and click Continue.

  4. 在“选择文件位置”**** 页上,选择要将 Office Web Apps Server 文件安装到的文件夹(例如,C:\Program Files\Microsoft Office Web Apps),再选择“立即安装”****。On the Choose a file location page, select the folder where you want the Office Online Server files to be installed (for example, C:\Program Files\Microsoft Office Web Apps) and select Install Now. 如果指定的文件夹不存在,安装程序为进行创建。If the folder you specified doesn’t exist, Setup creates it for you.

    我们建议在系统驱动器上安装 Office Web Apps Server。We recommend that you install Office Online Server on the system drive.

  5. 在安装程序安装完 Office Web Apps Server 后,选择“关闭”。When Setup finishes installing Office Online Server, choose Close.

  6. 下载并安装 Office Web Apps Server SP1(Windows Server 2012 和 Windows Server 2008 R2 SP1 推荐使用。Download and install Office Web Apps Server SP1 (Recommended for Windows Server 2012 and Windows Server 2008 R2 SP1. Windows Server 2012 R2 必需。)Required for Windows Server 2012 R2.)

    备注

    如果您打算以后再应用 Office Web Apps Server SP1,请按照Apply software updates to Office Web Apps Server 中的说明来操作。If you are applying Office Web Apps Server SP1 at a later time, follow the directions in Apply software updates to Office Web Apps Server.

  7. 查看 Office、Office 服务器和相关产品的 TechNet 更新中心上的列表,了解最新的 Office Web Apps Server 更新。Check for the most current WAC_Server_2nd updates by reviewing the list on the TechNet Update center for Office, Office servers, and related products https://go.microsoft.com/fwlink/p/?linkid=280271 .

    备注

    如果还没有安装 Office Web Apps Server SP1,请应用 KB2810007If you did not install Office Web Apps Server SP1, apply KB2810007https://go.microsoft.com/fwlink/p/?LinkId=296579.

步骤 3:为 Office Web Apps Server 安装语言包Step 3: Install language packs for Office Web Apps Server

借助 Office Web Apps Server 2013 语言包,用户可以查看多种语言的基于 web 的 Office 文件,无论是通过 SharePoint 2013 文件库、Outlook Web Access(作为附件预览),还是 Lync 2013(作为 PowerPoint 广播)打开,都是如此。WAC_Server_2nd 2013 Language Packs let users view web-based Office_1st_NoVer files in multiple languages, whether they’re opened from SharePointAll_1st_CurrentVer document libraries, Outlook Web Access (as attachment previews), and Communicator_1st_CurrentVer (as PowerPoint_1st_NoVer broadcasts). 若要了解有关语言包的工作方式的详细信息,请参阅规划 Office Web Apps Server 的语言包Learn more about how the language packs work in Planning language packs for Office Web Apps Server.

若要安装语言包,请按以下步骤操作。To install the language packs, follow these steps.

  1. Microsoft 下载中心下载 Office Web Apps Server 语言包。Download the Office Online Server Language Packs from the Microsoft Download Center.

  2. 运行 WebAppsServerLP_en-us_x64.exeRun WebAppsServerLP_en-us_x64.exe.

  3. 在 Office Web Apps Server 语言包 2013 向导中的“阅读 Microsoft 软件许可条款”页面上,选择“我接受此协议的条款”,然后选择“继续”。In the Office Online Server Language Pack Wizard, on the Read the Microsoft Software License Terms page, select I accept the terms of this agreement and select Continue.

  4. 在安装程序安装完 Office Web Apps Server 后,选择“关闭”。When Setup finishes installing Office Online Server, choose Close.

重要

  • 要在创建 Office Web Apps Server 场后安装语言包,必须从服务器场中删除一个服务器,将语言包安装在该服务器上,然后再将该服务器添加回服务器场。To install language packs after the WAC_Server_2nd farm is created, you must remove a server from the farm, install the language pack on it, and then add the server back to the farm.

  • 要使语言包正常工作,您需要在服务器场中的所有服务器上进行安装。For a language pack to work correctly, you’ll need to install it on all servers in the farm.

部署 Office Web Apps Server 场Deploy the Office Web Apps Server farm

按照下面三节中任意一节的程序进行操作,具体取决于你想创建的 Office Web Apps Server 场类型。Follow the procedures in one of the following three sections, based on what kind of Office Online Server farm you want to create.

提示

如果 Windows PowerShell 在你运行时无法识别 New-OfficeWebAppsFarm cmdlet,你可能需要导入 OfficeWebApps 模块。If PowerShell_1st_NoVer doesn’t recognize the New-OfficeWebAppsFarm cmdlet when you run it, you may need to import the OfficeWebApps module. 请使用此命令:Use this command:
Import-Module -Name OfficeWebApps

部署使用 HTTPS 的、包含一台服务器的 Office Web Apps Server 场Deploy a single-server Office Web Apps Server farm that uses HTTP

如果仅将 Office Web Apps Server 部署用于测试或内部使用,并且不需要向 Lync Server 2013 提供 Office Web Apps Server 功能,则此程序适合你。If you're only deploying Office Online Server for testing or internal use, and you don't need to provide Office Online Server functionality to Skype for Business Server 2015, this procedure is for you. 在这里,你将安装使用 HTTP 的单服务器 Office Web Apps Server 场。Deploy a single-server Office Web Apps Server farm that uses HTTP 您不需要证书或负载平衡器,但需要不运行任何其他服务器应用程序的专用物理服务器或虚拟机实例。You won’t need a certificate or load balancer, but you will need a dedicated physical server or virtual machine instance that isn’t running any other server application.

可使用此 Office Web Apps Server 场向 SharePoint 2013 提供 Office Web Apps 功能。You can use this Office Web Apps Server farm to provide Office Web Apps functionality to SharePoint 2013.

图:部署 Office Web Apps Server 的步骤Figure: The steps to deploy Office Web Apps Server

部署单台服务器 Office Web Apps Server 场的三个主要步骤。The three main steps to deploy a single-server Office Web Apps Server farm.

步骤 1:创建 Office Web Apps Server 服务器场Step 1: Create the Office Web Apps Server farm

使用 New-OfficeWebAppsFarm 命令创建一个包含一台服务器的新 Office Web Apps Server 场,如以下示例中所示。Use the New-OfficeWebAppsFarm command to create a new Office Online Server farm that consists of a single server, as shown in the following example.

    New-OfficeWebAppsFarm -InternalURL "http://servername" -AllowHttp -EditingEnabled

参数Parameters

  • –InternalURL 是运行 Office Web Apps Server 的服务器名称,例如 http://servername-InternalURL is the name of the server that runs Office Online Server, such as http://servername.

  • –AllowHttp 配置要使用 HTTP 的场。–AllowHttp configures the farm to use HTTP.

  • –EditingEnabled 在与 SharePoint 2013 一起使用时,可在 Office Web Apps 中进行编辑。–EditingEnabled enables editing in Office Web Apps when used with SharePoint 2013. Lync Server 2013 不使用该参数,因为相应主机不支持编辑。This parameter isn't used by Communications_Server_1st_CurrentVer because that host doesn't support editing.

New-OfficeWebAppsFarm 中描述了配置翻译服务、代理服务器、剪贴画支持以及联机查看器的其他参数。Additional parameters that configure translation services, proxy servers, clipart support, and Online Viewers are described in New-OfficeWebAppsFarm.

如果您看到“500 Web 服务异常”或“500.21 – 内部服务器错误”消息If you see “500 Web Service Exceptions” or “500.21 – Internal Server Error” messages

步骤 2:验证是否成功创建了 Office Web Apps Server 服务器场Step 2: Verify that the Office Web Apps Server farm was created successfully

在创建服务器场后,将在 Windows PowerShell 提示符中显示有关服务器场的详细信息。After the farm is created, details about the farm are displayed in the Microsoft PowerShell prompt. 若要验证是否正确安装并配置了 Office Web Apps Server,请使用 Web 浏览器访问 Office Web Apps Server 发现 URL,如下面的示例所示。To verify that Office Online Server is installed and configured correctly, use a web browser to access the Office Online Server discovery URL, as shown in the following example. 发现 URL 是你在配置 Office Web Apps Server 服务器场时指定的 InternalUrl 参数,后跟 /hosting/discovery,例如:The discovery URL is the InternalUrl parameter you specified when you configured your Office Online Server farm, followed by /hosting/discovery, for example:

    http://servername/hosting/discovery

如果 Office Web Apps Server 按预期运行,应该在 Web 浏览器中看到 Web 应用程序开放平台接口 (WOPI) 协议发现 XML 文件。If Office Online Server is working as expected, you should see a Web Application Open Platform Interface Protocol (WOPI)-discovery XML file in your web browser. 该文件的前几行应类似以下示例。The first few lines of that file should resemble the following example.

    <?xml version="1.0" encoding="utf-8" ?> 
    - <wopi-discovery>
    - <net-zone name="internal-http">
    - <app name="Excel" favIconUrl="http://servername/x/_layouts/images/FavIcon_Excel.ico" checkLicense="true">
    <action name="view" ext="ods" default="true" urlsrc="http://servername/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" /> 
    <action name="view" ext="xls" default="true" urlsrc="http://servername/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" /> 
    <action name="view" ext="xlsb" default="true" urlsrc="http://servername/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" /> 
    <action name="view" ext="xlsm" default="true" urlsrc="http://servername/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" /> 

步骤 3:配置主机Step 3: Configure the host

服务器场现在已经可以通过 HTTP 为主机提供 Office Web Apps 功能。The farm is now ready to provide Office Online functionality to hosts over HTTP. 要详细了解如何配置主机,请访问为 SharePoint 2013 配置 Office Web AppsVisit Configure a SharePoint 2013 farm to use Office Web Apps Server for more information about how to configure hosts.

部署使用 HTTPS 的、包含一台服务器的 Office Web Apps Server 服务器场Deploy a single-server Office Web Apps Server farm that uses HTTPS

对于大多数生产环境,强烈建议对其安全功能使用 HTTPS。For most production environments, we strongly recommend the use of HTTPS for its security features. 同样,如果要向 Lync Server 2013 提供 Office Web Apps Server 功能,则需要 HTTPS,这样用户便可在浏览器中查看 PowerPoint 广播。Also, HTTPS is required if you want to provide Office Online Server functionality to Skype for Business Server 2015, which lets users view PowerPoint broadcasts in a browser. 此处将介绍如何安装使用 HTTPS 的单服务器 Office Web Apps Server 场。Here's how to install a single-server Office Online Server farm that uses HTTPS. 需要按照使用 HTTPS 保护 Office Web Apps Server 通信中所述,在服务器上安装证书。You'll need to install a certificate on the server as described in Securing Office Web Apps Server communications by using HTTPS.

此 Office Web Apps Server 场会向 SharePoint 2013 和 Lync Server 2013 提供 Office Web Apps 功能。This Office Web Apps Server farm will provide Office Web Apps functionality to SharePoint 2013 and Lync Server 2013.

图:部署 Office Web Apps Server 的步骤Figure: The steps to deploy Office Web Apps Server

部署单台服务器 Office Web Apps Server 场的三个主要步骤。The three main steps to deploy a single-server Office Web Apps Server farm.

步骤 1:创建 Office Web Apps Server 服务器场Step 1: Create the Office Web Apps Server farm

使用 New-OfficeWebAppsFarm 命令创建一个包含一台服务器的新 Office Web Apps Server 场,如以下示例中所示。Use the New-OfficeWebAppsFarm command to create a new Office Online Server farm that consists of a single server, as shown in the following example.

    New-OfficeWebAppsFarm -InternalUrl "https://server.contoso.com" -ExternalUrl "https://wacweb01.contoso.com" -CertificateName "OfficeWebApps Certificate" -EditingEnabled

参数Parameters

  • –InternalURL 是运行 Office Web Apps Server 服务器完全限定的域名 (FQDN),如 http://servername.contoso.com.-InternalURL is the fully qualified domain name (FQDN) of the server that runs Office Online Server, such as http://servername.contoso.com.

  • –ExternalURL 是可以在 Internet 上访问的 FQDN。–ExternalURL is the FQDN that can be accessed on the Internet.

  • –CertificateName 是证书的友好名称。–CertificateName is the friendly name of the certificate.

  • -EditingEnabled 为可选,在与 SharePoint 2013 一起使用时,可在 Office Web Apps 中进行编辑。–EditingEnabled is optional and enables editing in Office Web Apps when used with SharePoint 2013. Lync Server 2013 不使用该参数,因为相应主机不支持编辑。This parameter isn't used by Communications_Server_1st_CurrentVer because that host doesn't support editing.

New-OfficeWebAppsFarm 中描述了配置翻译服务、代理服务器、剪贴画支持以及联机查看器的其他参数。Additional parameters that configure translation services, proxy servers, clipart support, and Online Viewers are described in New-OfficeWebAppsFarm.

如果看到“500 Web 服务异常”或“500.21 – 内部服务器错误”消息If you see “500 Web Service Exceptions” or “500.21 – Internal Server Error” messages

步骤 2:验证是否成功创建了 Office Web Apps Server 服务器场Step 2: Verify that the Office Web Apps Server farm was created successfully

在创建服务器场后,将在 Windows PowerShell 提示符中显示有关服务器场的详细信息。After the farm is created, details about the farm are displayed in the Microsoft PowerShell prompt. 若要验证是否正确安装并配置了 Office Web Apps Server,请使用 Web 浏览器访问 Office Web Apps Server 发现 URL,如下面的示例所示。To verify that Office Online Server is installed and configured correctly, use a web browser to access the Office Online Server discovery URL, as shown in the following example. 发现 URL 是你在配置 Office Web Apps Server 服务器场时指定的 InternalUrl 参数,后跟 /hosting/discovery,例如:The discovery URL is the InternalUrl parameter you specified when you configured your Office Online Server farm, followed by /hosting/discovery, for example:

    https://server.contoso.com/hosting/discovery

如果 Office Web Apps Server 按预期运行,应该在 Web 浏览器中看到 Web 应用程序开放平台接口 (WOPI) 协议发现 XML 文件。If Office Online Server works as expected, you should see a Web Application Open Platform Interface Protocol (WOPI)-discovery XML file in your web browser. 该文件的前几行应类似以下示例:The first few lines of that file should resemble the following example:

<?xml version="1.0" encoding="UTF-8"?>
<wopi-discovery><net-zone 
name="internal-https"><app name="Excel" checkLicense="true" 
favIconUrl="https://wac.contoso.com/x/_layouts/images/FavIcon_Excel.ico"><action 
name="view" 
urlsrc="https://wac.contoso.com/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" 
default="true" ext="ods"/><action name="view" 
urlsrc="https://wac.contoso.com/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" 
default="true" ext="xls"/><action name="view" 

备注

根据你的 Web 浏览器的安全设置,你可能会看到一条提示你选择“显示所有内容”的消息,然后才能显示发现 XML 文件的内容。Depending on the security settings of your web browser, you might see a message that prompts you to select Show all content before the contents of the discovery XML file are displayed.

步骤 3:配置主机Step 3: Configure the host

服务器场现在已经可以通过 HTTPS 为主机提供 Office Web Apps 功能。The farm is now ready to provide Office Online functionality to hosts over HTTPS. 有关如何配置主机的详细信息,请查阅以下文章。Visit the following articles for more information about how to configure hosts.

部署使用 HTTPS 的、包含多台服务器的负载平衡 Office Web Apps Server 服务器场Deploy a multi-server, load-balanced Office Web Apps Server farm that uses HTTPS

如果预计 Office Web Apps Server 场流量很大,并且希望其通过 Internet 且在内部网络中可用,则应使用此类型的拓扑。If you anticipate lots of traffic to your Office Online Server farm, and you want it to be available over the Internet as well as on your internal network, this type of topology is the way to go. 本节介绍如何安装使用负载平衡器和 HTTPS 的多服务器 Office Web Apps Server 场。This section shows how to install a multi-server Office Online Server farm that uses a load balancer and HTTPS. 如果您感兴趣,请阅读关于此拓扑的详细信息If you’re interested, read more about this topology.

开始之前,请先确保已按照 Office Web Apps Server 的负载均衡器要求中所述操作,配置负载均衡器。Before you begin, make sure your load balancer is configured as described in Load balancer requirements for Office Web Apps Server. 还需按照使用 HTTPS 保护 Office Web Apps Server 通信中所述操作,在负载均衡器上安装证书。Also, you'll need to install a certificate on the load balancer as described in Securing Office Web Apps Server communications by using HTTPS. 此 Office Web Apps Server 场会向 SharePoint 2013 和 Lync Server 2013 提供 Office Web Apps 功能。This Office Web Apps Server farm will provide Office Web Apps functionality to SharePoint 2013 andLync Server 2013.

图:部署 Office Web Apps Server 的步骤Figure: The steps to deploy Office Web Apps Server

部署多台服务器 Office Web Apps Server 场的四个主要步骤。The four main steps to deploy a multi-server Office Web Apps Server farm.

步骤 1:在第一台服务器上创建 Office Web Apps Server 服务器场Step 1: Create the Office Web Apps Server farm on the first server

使用 New-OfficeWebAppsFarm 命令在第一台服务器上创建的新 Office Web Apps Server 场,如以下示例中所示。Use the New-OfficeWebAppsFarm command to create a new Office Online Server farm on the first server, as shown in the following example.

    New-OfficeWebAppsFarm -InternalUrl "https://server.contoso.com" -ExternalUrl "https://wacweb01.contoso.com" -SSLOffloaded -EditingEnabled

参数Parameters

  • –InternalURL 是运行 Office Web Apps Server 服务器完全限定的域名 (FQDN),如 http://servername.contoso.com.-InternalURL is the fully qualified domain name (FQDN) of the server that runs Office Online Server, such as http://servername.contoso.com.

  • –ExternalURL 是可以在 Internet 上访问的 FQDN 名称。–ExternalURL is the FQDN name that can be accessed on the Internet.

  • -SSLOffloaded 允许卸载到负载平衡器的 SSL 端接。-SSLOffloaded enables offloading SSL termination to the load balancer.

  • -EditingEnabled 为可选,在与 SharePoint 2013 一起使用时,可在 Office Web Apps 中进行编辑。–EditingEnabled is optional and enables editing in Office Web Apps when used with SharePoint 2013. Lync Server 2013 不使用该参数,因为相应主机不支持编辑。This parameter isn't used by Communications_Server_1st_CurrentVer because that host doesn't support editing.

New-OfficeWebAppsFarm 中描述了翻译服务、 代理服务器、 剪贴画支持和在线查看器配置其他参数。Other parameters that configure translation services, proxy servers, ClipArt support, and Online Viewers are described in New-OfficeWebAppsFarm.

如果看到“500 Web 服务异常”或“500.21 – 内部服务器错误”消息If you see “500 Web Service Exceptions” or “500.21 – Internal Server Error” messages

步骤 2:向服务器场中添加更多服务器Step 2: Add more servers to the farm

第一台服务器运行 Office Web Apps Server 后,在要添加到 Office Web Apps Server 服务器场中的每台服务器上运行 New-OfficeWebAppsMachine 命令。After the first server is running Office Online Server, run the New-OfficeWebAppsMachine command on each server you want to add to the Office Online Server farm. 对于 -MachineToJoin 参数,请使用已存在于 Office Web Apps Server 服务器场中的某台服务器的计算机名称。For the -MachineToJoin parameter, use the computer name of a server that's already in the Office Online Server farm. 例如,如果 server1.contoso.com 已在服务器场中,请使用以下名称:For example, if server1.contoso.com is already in the farm, use the following:

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

需要有关这些参数的详细信息?Want more information about these parameters? 可以在 New-OfficeWebAppsMachine 中找到这些信息。You can find them in New-OfficeWebAppsMachine.

步骤 3:验证是否成功创建了 Office Web Apps Server 服务器场Step 3: Verify that the Office Web Apps Server farm was created successfully

在创建服务器场后,将在 Windows PowerShell 提示符中显示有关服务器场的详细信息。After the farm is created, details about the farm are displayed in the Microsoft PowerShell prompt. 若要验证是否正确安装并配置了 Office Web Apps Server,请使用 Web 浏览器访问 Office Web Apps Server 发现 URL,如下面的示例所示。To verify that Office Online Server is installed and configured correctly, use a web browser to access the Office Online Server discovery URL, as shown in the following example. 发现 URL 是你在配置 Office Web Apps Server 服务器场时指定的 InternalUrl 参数,后跟 /hosting/discoveryThe discovery URL is the InternalUrl parameter you specified when you configured your Office Online Server farm, followed by /hosting/discovery, for example: 例如:For example:

    https://server.contoso.com/hosting/discovery

如果 Office Web Apps Server 按预期运行,应该在 Web 浏览器中看到 Web 应用程序开放平台接口 (WOPI) 协议发现 XML 文件。If Office Online Server works as expected, you should see a Web Application Open Platform Interface Protocol (WOPI)-discovery XML file in your web browser. 该文件的前几行应类似以下示例:The first few lines of that file should resemble the following example:

    <?xml version="1.0" encoding="UTF-8"?>
    <wopi-discovery><net-zone name="internal-https"><app name="Excel" checkLicense="true" favIconUrl="https://officewebapps.contoso.com/x/_layouts/images/FavIcon_Excel.ico"><action name="view" urlsrc="https://officewebapps.contoso.com/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" default="true" ext="ods"/><action name="view" urlsrc="https://officewebapps.contoso.com/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" default="true" ext="xls"/><action name="view" urlsrc="https://officewebapps.contoso.com/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" default="true" ext="xlsb"/> 

备注

根据你的 Web 浏览器的安全设置,你可能会看到一条提示你选择“显示所有内容”的消息,然后才能显示发现 XML 文件的内容。Depending on the security settings of your web browser, you might see a message that prompts you to select Show all content before the contents of the discovery XML file are displayed.

步骤 4:配置主机Step 4: Configure the host

服务器场现在已经可以通过 HTTPS 为主机提供 Office Web Apps 功能。The farm is now ready to provide Office Online functionality to hosts over HTTPS. 有关如何配置主机的详细信息,请查阅以下文章。Visit the following articles for more information about how to configure hosts.

如果您看到“500 Web 服务异常”或“500.21 – 内部服务器错误”消息If you see “500 Web Service Exceptions” or “500.21 – Internal Server Error” messages

如果安装然后删除了 .NET Framework 3.5 的功能,在运行 OfficeWebApps cmdlet 时,您可能会看到“500 Web 服务异常”或“500.21 – 内部服务器错误”消息。If features of the .NET Framework 3.5 were installed and then removed, you might see “500 Web Service Exceptions” or “500.21 – Internal Server Error” messages when you run OfficeWebApps cmdlets. 若要解决此问题,请从提升的命令提示符运行以下示例命令来清理阻止 Office Web Apps Server 正确运行的设置:To fix this, run the following sample commands from an elevated command prompt to clean up settings that could prevent Office Online Server from functioning correctly:

对于 Windows Server 2008 R2For Windows Server 2008 R2

    %systemroot%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -iru
    iisreset /restart /noforce

对于 Windows Server 2012 或 Windows Server 2012 R2For Windows Server 2012 or Windows Server 2012 R2

    dism /online /enable-feature /featurename:IIS-ASPNET45

另请参阅See also

New-OfficeWebAppsFarmNew-OfficeWebAppsFarm
New-OfficeWebAppsMachineNew-OfficeWebAppsMachine

Office Web Apps Server 内容指南Content roadmap for Office Web Apps Server
规划 Office Web Apps ServerPlan Office Web Apps Server
为 SharePoint 2013 配置 Office Web AppsConfigure Office Web Apps for SharePoint 2013

部署 Office Web Apps Server 和 Lync Server 2013Deploying Office Web Apps Server and Lync Server 2013https://go.microsoft.com/fwlink/p/?LinkId=256902