安裝 BranchCache 功能,並設定裝載快取伺服器服務連接點,Install the BranchCache Feature and Configure the Hosted Cache Server by Service Connection Point

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

您可以使用此程序 BranchCache」功能在伺服器上安裝裝載快取,HCS1,並設定為隊伍登記服務連接點伺服器 (SCP) Active Directory Domain Services (AD DS) 中的。You can use this procedure to install the BranchCache feature on your hosted cache server, HCS1, and to configure the server to register a Service Connection Point (SCP) in Active Directory Domain Services (AD DS).

當您使用 AD DS SCP 登記裝載快取的伺服器時,SCP 可 client 自動查詢 SCP AD DS 探索裝載快取的伺服器設定正確的電腦。When you register hosted cache servers with an SCP in AD DS, the SCP allows client computers that are configured correctly to automatically discover hosted cache servers by querying AD DS for the SCP. 在本文稍後提供如何設定 client 電腦上的指示執行此動作。Instructions on how to configure client computers to perform this action are provided later in this guide.

重要

執行此程序之前,您必須加入網域的電腦和電腦靜態 IP 位址設定。Before you perform this procedure, you must join the computer to the domain and configure the computer with a static IP address.

若要執行此程序,您必須是系統管理員群組成員。To perform this procedure, you must be a member of the Administrators group.

若要安裝 BranchCache 功能和設定裝載快取伺服器To install the BranchCache feature and configure the hosted cache server

  1. 以系統管理員身分執行 Windows PowerShell 伺服器電腦。On the server computer, run Windows PowerShell as an Administrator. 輸入下列命令,,然後按 ENTER 鍵。Type the following command, and then press ENTER.

    Install-WindowsFeature BranchCache
    
  2. 若要將電腦設定為裝載快取伺服器之後安裝的 BranchCache 功能,並在 AD DS 登記服務連接點,Windows PowerShell 中,輸入下列命令,然後按 ENTER 鍵。To configure the computer as a hosted cache server after the BranchCache feature is installed, and to register a Service Connection Point in AD DS, type the following command in Windows PowerShell, and then press ENTER.

    Enable-BCHostedServer -RegisterSCP
    
  3. 若要確認裝載快取伺服器設定,輸入下列命令,然後按 ENTER。To verify the hosted cache server configuration, type the following command and press ENTER.

    Get-BCStatus  
    

    命令的結果顯示所有方面 BranchCache 安裝的狀態。The results of the command display status for all aspects of your BranchCache installation. 以下是一些 BranchCache 設定和正確的值為每個項目:Following are a few of the BranchCache settings and the correct value for each item:

    • BranchCacheIsEnabled: TrueBranchCacheIsEnabled: True

    • HostedCacheServerIsEnabled: TrueHostedCacheServerIsEnabled: True

    • HostedCacheScpRegistrationEnabled: TrueHostedCacheScpRegistrationEnabled: True

  4. 若要準備您的資料套件複製到裝載快取的伺服器內容伺服器的步驟,不論是找出裝載快取的伺服器上現有共用或建立新的資料夾和,使其可以存取您內容伺服器的共用資料夾。To prepare for the step of copying your data packages from your content servers to your hosted cache servers, either identify an existing share on the hosted cache server or create a new folder and share the folder so that it is accessible from your content servers. 建立內容伺服器上的資料套件之後,您將此裝載快取伺服器上的共用資料夾複製資料的套件。After you create your data packages on your content servers, you will copy the data packages to this shared folder on the hosted cache server.

  5. 如果您的部署一部以上的裝載快取伺服器,請重複此程序各個伺服器上。If you are deploying more than one hosted cache server, repeat this procedure on each server.

若要繼續使用此快速入門,請查看移動及調整大小裝載快取與 #40; 選用和 #41;.To continue with this guide, see Move and Resize the Hosted Cache (Optional).