此部署並未啟用分散式快取服務 (SharePoint Server)Distributed cache service is not enabled in this deployment (SharePoint Server)

摘要: 了解如何為 SharePoint Server 2016 和 SharePoint 2013 解決 SharePoint Health Analyzer 規則「此部署並未啟用分散式快取服務」。Summary: Learn how to resolve the SharePoint Health Analyzer rule "Distributed cache service is not enabled in this deployment", for SharePoint Server 2016 and SharePoint 2013.

規則名稱: 此部署並未啟用分散式快取服務。Rule Name: Distributed cache service is not enabled in this deployment.

摘要: 分散式快取服務已於安裝時在所有執行 SharePoint 產品 的伺服器上啟動。但是,執行維護和操作工作的管理員可能會需要啟動及停止分散式快取服務。此事件會在分散式快取服務已停止時發生。Summary: The Distributed Cache service is started on all servers that run SharePoint products at installation time. However, an administrator that performs maintenance and operational tasks might need to start and stop the Distributed Cache service. This event occurs when the Distributed Cache service is stopped.

原因: 此伺服器上已停用分散式快取服務。Cause: The Distributed Cache service is disabled on this server.

解決方案: 使用 Microsoft PowerShell 來啟用分散式快取服務。Resolution: Enable the Distributed Cache service by using Microsoft PowerShell.

  1. 確認您具備下列成員身分:Verify that you have the following memberships:

    • SQL Server 執行個體上的 securityadmin 固定伺服器角色。securityadmin fixed server role on the SQL Server instance.

    • 所有要更新之資料庫上的 db_owner 固定資料庫角色。db_owner fixed database role on all databases that are to be updated.

    • 正在執行 PowerShell Cmdlet 之所在伺服器上的系統管理員群組。Administrators group on the server on which you are running the PowerShell cmdlets.

    • 伺服器陣列管理員群組。Farm Administrators group.

      系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server Cmdlet 的權限。An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets.

      注意

      如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。如需 PowerShell 權限的其他資訊,請參閱 Add-SPShellAdminIf you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about PowerShell permissions, see Add-SPShellAdmin.

  2. 啟動 SharePoint 管理命令介面。Start the SharePoint Management Shell.

  3. 在您要啟用分散式快取服務的伺服器上,執行下列命令:On the server on which you want to enable the Distributed Cache service, run the following command:

    Add-SPDistributedCacheServiceInstance

  4. 確認分散式快取服務已啟動。若要執行這項操作,請在 SharePoint 管理中心網站中按一下 [應用程式管理]*。在 [服務應用程式]* 區段中,按一下 [管理伺服器上的服務]*。在 [伺服器上的服務]* 頁面上,確定已列出分散式快取服務,且狀態為 [已啟動]****。Verify that the Distributed Cache service is started. To do this, in CentralAdmin_1st, click Application Management. In the Service Applications section, click Manage services on server. On the Services on Server page, make sure that the Distributed Cache service is listed, and the status is Started.

另請參閱See also

概念Concepts

在 SharePoint Server 中管理分散式快取服務Manage the Distributed Cache service in SharePoint Server

規劃 SharePoint Server 中的摘要和分散式快取服務Plan for feeds and the Distributed Cache service in SharePoint Server

其他資源Other Resources

Add-SPDistributedCacheServiceInstanceAdd-SPDistributedCacheServiceInstance

規劃與使用分散式快取服務Planning and using the Distributed Cache service