此分布式缓存主机可能会引发缓存可靠性问题 (SharePoint Server)

适用于:yes-img-132013 yes-img-162016 yes-img-192019 yes-img-seSubscription Edition no-img-sopSharePoint in Microsoft 365

规则名称:此分布式缓存主机可能会引发缓存可靠性问题。

摘要: 此缓存主机上的分布式缓存服务已被停用,但尚未从服务器场撤消注册。 为了避免可靠性问题,我们建议您在服务器上启动分布式缓存服务,或者从缓存群集删除缓存主机。

原因:此分布式缓存主机上的分布式缓存服务已被停用,但尚未从服务器场撤消注册。

解决方案:使用 Microsoft PowerShell 在服务器上启动分布式缓存服务。

  1. 确认您具有以下成员身份:
  • SQL Server 实例上的 securityadmin 固定服务器角色。

  • 要更新的所有数据库上的 db_owner 固定数据库角色。

  • 运行 PowerShell cmdlet 的服务器上的 Administrators 组。

  • Farm Administrators 组。

    管理员可以使用 Add-SPShellAdmin cmdlet 授予使用 SharePoint Server cmdlet 的权限。

    注意

    [!注意] 如果您不具有这些权限,请联系您的安装管理员或 SQL Server 管理员来请求权限。 有关 PowerShell 权限的其他信息,请参阅 Add-SPShellAdmin

  1. 启动 SharePoint 命令行管理程序。

  2. 在要启动分布式缓存服务的服务器上,在 PowerShell 命令提示符处键入以下命令:

Add-SPDistributedCacheServiceInstance
  1. In the SharePoint Central Administration website, click Application Management. In the Service Applications section, click Manage services on server.

  2. 在“服务器上的服务”页中,确认列出了分布式缓存服务,并且状态为“已启动”。

解决方案:使用 Windows PowerShell 从缓存群集删除缓存主机。

  1. 确认您具有以下成员身份:
  • SQL Server 实例上的 securityadmin 固定服务器角色。

  • 要更新的所有数据库上的 db_owner 固定数据库角色。

  • 运行 PowerShell cmdlet 的服务器上的 Administrators 组。

  • Farm Administrators 组。

    管理员可以使用 Add-SPShellAdmin cmdlet 授予使用 SharePoint Server cmdlet 的权限。

    注意

    [!注意] 如果您不具有这些权限,请联系您的安装管理员或 SQL Server 管理员来请求权限。 有关 PowerShell 权限的其他信息,请参阅 Add-SPShellAdmin

  1. 启动 SharePoint 命令行管理程序。

  2. 在 PowerShell 命令提示符处,键入以下命令:

Remove-SPDistributedCacheServiceInstance

注意

[!注意] 此命令会停止缓存服务,并且非持久的缓存数据将丢失。 如果要保留缓存数据,则应使用 在 SharePoint Server 中管理分布式缓存服务 中介绍的正常关闭过程,然后运行 Remove-SPDistributedCacheServiceInstance cmdlet。 Remove-SPDistributedCacheServiceInstance cmdlet 涉及到停止和禁用基础 AppFabric 缓存服务。 不要通过运行 Add-SPDistributedCacheServiceInstance cmdlet 以外的其他方法重新启动 AppFabric 缓存服务。

有关详细信息,请参阅 Remove-SPDistributedCacheServiceInstance

  1. Verify that the server is removed from the cache cluster. To do this, in Central Administration, click Manage services on server, and then, on the Services on Server page, make sure that the Distributed Cache service is not listed.

另请参阅

概念

在 SharePoint Server 中规划源和分布式缓存服务

其他资源

规划和使用分布式缓存服务