zoukankan      html  css  js  c++  java
  • 在SharePoint 2013 场中移除服务器,提示 cacheHostInfo is null 错误

    Problem

    在SharePoint 2013 场中移除服务器,提示 cacheHostInfo is null 错误

    Resolution

    这是由于SharePoint 2013中分布式缓存实例(Distributed Cache)在此服务器上已被注册,如果需要将此服务器从SharePoint 场里移除,首先必须将分布式缓存实例在此服务器上删除。

    所以,通过PowerShell,得到分布式缓存实例,然后将其删除即可。

    • 获取实例名

    • 删除此Distributed Cache实例(比如该实例在GCP-WEB 01这台服务器上被注册)

    • 完整PowerShell 代码如下
    Add-PSSnapin Microsoft.SharePoint.PowerShell
    $SPFarm = Get-SPFarm
    $cacheClusterName = "SPDistributedCacheCluster_" + $SPFarm.Id.ToString()
    $cacheClusterManager = [Microsoft.SharePoint.DistributedCaching.Utilities.SPDistributedCacheClusterInfoManager]::Local
    $cacheClusterInfo = $cacheClusterManager.GetSPDistributedCacheClusterInfo($cacheClusterName);
    $instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
    $serviceInstance = Get-SPServiceInstance | ? {($_.Service.Tostring()) -eq $instanceName -and ($_.Server.Name) -eq "Your Server Name"}
    $serviceInstance.Delete()
  • 相关阅读:
    正则:连续数字
    [f]聊天的时间格式化
    微信物理返回刷新页面
    npm 使用记录
    Java内存可见性volatile
    EA通过MySQL多人协作
    Sonarqube Webhook自定义参数
    使用阿里云加速Docker镜像下载
    Java异常堆栈丢失的现象及解决方法
    fo-dicom库 Dicom.Native.dll如何自动到编译输出目录
  • 原文地址:https://www.cnblogs.com/OceanEyes/p/removing-server-from-sharepoint-2013-alert-cachehostinfo-is-null.html
Copyright © 2011-2022 走看看