安裝 BranchCache 功能Install the BranchCache Feature

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

您可以使用此程序安裝 BranchCache 功能,並開始執行 Windows Server 的電腦上的 BranchCache 服務®2016、 Windows Server 2012 R2 或 Windows Server 2012。You can use this procedure to install the BranchCache feature and start the BranchCache service on a computer running Windows Server® 2016, Windows Server 2012 R2, or Windows Server 2012.

資格在系統管理員或相當於的最低需求才能執行此程序。Membership in Administrators or equivalent is the minimum required to perform this procedure.

在執行此程序之前,建議您安裝並設定您的位元為基礎的應用程式或 Web 伺服器。Before you perform this procedure, it is recommended that you install and configure your BITS-based application or Web server.

注意

使用 Windows PowerShell,系統管理員的身分,以執行 Windows PowerShell 來執行這個程序,Windows PowerShell 命令提示字元中,輸入下列命令,然後按 ENTER 鍵。To perform this procedure by using Windows PowerShell, run Windows PowerShell as an Administrator, type the following commands at the Windows PowerShell prompt, and then press ENTER.

Install-WindowsFeature BranchCache

Restart-Computer

安裝以及 BranchCache 功能To install and enable the BranchCache feature

  1. 在伺服器管理員中,按一下管理,然後按新增角色與功能In Server Manager, click Manage, and then click Add Roles and Features. 開啟精靈新增角色與功能]。The Add Roles and Features wizard opens. 按一下下一步Click Next.

  2. 選擇安裝類型,確認以角色為基礎,或為基礎的功能的安裝已選取,然後按一下 [下一步In Select installation type, ensure that Role-based or feature-based installation is selected, and then click Next.

  3. 選擇目的伺服器,確定正確的伺服器已選取,然後按下一步In Select destination server, ensure that the correct server is selected, and then click Next.

  4. 選擇伺服器角色,按一下 [In Select server roles, click Next.

  5. 選取功能,按一下 [ BranchCache,然後按一下 [下一步In Select features, click BranchCache, and then click Next.

  6. 確認安裝選項,按一下 [安裝In Confirm installation selections, click Install. 安裝進度、 進行 BranchCache 功能安裝。In Installation progress, the BranchCache feature installation proceeds. 安裝完成時,請按一下關閉When installation is complete, click Close.

您安裝 BranchCache 功能之後,BranchCache 服務-也稱為 PeerDistSvc-功能,並為 [自動] 的 [開始] 畫面類型。After you install the BranchCache feature, the BranchCache service - also called the PeerDistSvc - is enabled, and the start type is Automatic.