SharePoint 2013 安装

时间:2023-03-08 21:14:21

步骤 1:打开提升的 SharePoint 2013 命令行管理程序

选择与您的服务器操作系统对应的过程。

在 Windows Server 2008 R2 中

  1. 单击“开始”>“所有程序”>“Microsoft SharePoint 2013 产品”。

  2. 右键单击“SharePoint 2013 命令行管理程序”,然后单击“以管理员身份运行”。

在 Windows Server 2012 中

  1. 同时按下 Windows 徽标键和 Q,或者从屏幕边缘向内轻扫以显示超级按钮,然后单击“搜索”以查看计算机上安装的所有应用程序。

  2. 右键单击“SharePoint 2013 命令行管理程序”以显示应用程序栏。

  3. 在应用程序栏中,单击“以管理员身份运行”。

运行以下命令,其中 <WacServerName> 是您为内部 URL 设置的完全限定的域名 (FQDN)。这是 Office Web Apps Server 流量的入口点。对于此测试环境,您必须指定 –AllowHTTP 参数以允许 SharePoint 2013 通过使用 HTTP 接收来自 Office Web Apps Server 服务器场的发现信息。如果您未指定 –AllowHTTP,则 SharePoint 2013 将尝试使用 HTTPS 与 Office Web Apps Server 服务器场进行通信,并且此命令将失败。

New-SPWOPIBinding -ServerName <WacServerName> -AllowHTTP

运行此命令后,您应看到 Windows PowerShell 命令提示符处显示了一个绑定列表。

是否需要帮助?请参阅 New-SPWOPIBinding

Office Web Apps Server 使用区域来确定其与主机(此示例中为 SharePoint 2013)进行通信时将使用的 URL(内部或外部)和协议(HTTP 或 HTTPS)。默认情况下,SharePoint Server 2013 使用 internal-https 区域。通过运行以下命令来确认这是当前区域:

Get-SPWOPIZone

此命令显示的 WOPI 区域应该是 internal-http。如果显示正确,请跳至步骤 5,否则请参阅下一步。

是否需要帮助?请参阅 Get-SPWOPIZone

如果通过执行步骤 3 获得的结果为 internal-https,则运行以下命令可将区域更改为 internal-http。您需要进行此更改,因为 SharePoint 2013 的区域必须匹配 Office Web Apps Server 服务器场的区域。

Set-SPWOPIZone -zone "internal-http"

再次运行 Get-SPWOPIZone ,确认新的区域为 internal-http

是否需要帮助?请参阅 Set-SPWOPIZone 和 Get-SPWOPIZone

若要在测试环境中通过 HTTP 将 SharePoint 2013 与 Office Web Apps 结合使用,您需要将 AllowOAuthOverHttp 设置为“True”。否则,Office Web Apps 将不起作用。可通过运行以下示例来检查当前状态:

(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp

如果此命令返回 False,则运行下列命令可将其设置为 True

$config = (Get-SPSecurityTokenServiceConfig)
$config.AllowOAuthOverHttp = $true
$config.Update()

再次运行以下命令来验证 AllowOAuthOverHttp 设置现在是否设置为 True

(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp

是否需要帮助?请参阅 Get-SPSecurityTokenServiceConfig