部署裝載快取伺服器(選擇性)Deploy Hosted Cache Servers (Optional)

適用於:Windows Server(以每年次管道)、Windows Server 2016Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016

安裝和 BranchCache 裝載快取伺服器位於分公司您想要部署 BranchCache 裝載快取模式中的設定,您可以使用此程序。You can use this procedure to install and configure BranchCache hosted cache servers that are located in branch offices where you want to deploy BranchCache hosted cache mode. 與 Windows Server 2016 中 BranchCache,您可以部署一個分公司中的多個裝載快取伺服器。With BranchCache in Windows Server 2016, you can deploy multiple hosted cache servers in one branch office.

重要

因為分散式快取模式不需要在分公司裝載快取伺服器電腦此步驟是選擇性的。This step is optional because distributed cache mode does not require a hosted cache server computer in branch offices. 如果您不計劃在部署裝載快取任何分公司模式,您不需要部署裝載快取伺服器,並您不需要執行這個程序中的步驟。If you are not planning on deploying hosted cache mode in any branch offices, you do not need to deploy a hosted cache server, and you do not need to perform the steps in this procedure.

您必須成員的系統管理員,或相當於執行此程序。You must be a member of Administrators, or equivalent to perform this procedure.

安裝和設定的裝載快取伺服器To install and configure a hosted cache server

  1. 在電腦上您想要為裝載快取伺服器設定,請安裝 BranchCache 功能的 Windows PowerShell 命令提示字元中,執行下列命令。On the computer that you want to configure as a hosted cache server, run the following command at a Windows PowerShell prompt to install the BranchCache feature.

    Install-WindowsFeature BranchCache -IncludeManagementTools

  2. 設定為裝載快取伺服器的電腦使用其中一項下列命令:Configure the computer as a hosted cache server by using one of the following commands:

    • 若要非網域結合將電腦設定為裝載快取伺服器,在 Windows PowerShell 命令提示字元中,輸入下列命令,然後按 ENTER 鍵。To configure a non-domain joined computer as a hosted cache server, type the following command at the Windows PowerShell prompt, and then press ENTER.

      Enable-BCHostedServer

    • 若要設定的網域加入為裝載快取伺服器、電腦與服務連接點 Active Directory 中登記參加並自動裝載快取伺服器探索 client 電腦,在 Windows PowerShell 命令提示字元中,輸入下列命令,然後按 ENTER 鍵。To configure a domain joined computer as a hosted cache server, and to register a service connection point in Active Directory for automatic hosted cache server discovery by client computers, type the following command at the Windows PowerShell prompt, and then press ENTER.

      Enable-BCHostedServer -RegisterSCP

  3. 若要確認裝載快取伺服器的正確設定,Windows PowerShell 命令提示字元中,輸入下列命令,然後按 ENTER 鍵。To verify the correct configuration of the hosted cache server, type the following command at the Windows PowerShell prompt, and then press ENTER.

    Get-BCStatus

    注意

    您一節中執行此命令之後HostedCacheServerConfiguration的值為HostedCacheServerIsEnabledTrueAfter you run this command, in the section HostedCacheServerConfiguration, the value for HostedCacheServerIsEnabled is True. 如果您設定在 Active Directory 的值為登記服務連接點 (SCP) 網域結合裝載快取伺服器HostedCacheScpRegistrationEnabled,則為 TrueIf you configured a domain joined hosted cache server to register a service connection point (SCP) in Active Directory, the value for HostedCacheScpRegistrationEnabled is True.