zoukankan      html  css  js  c++  java
  • Windows Server AppFabric Caching 安装启动的问题

    在开发机器上测试没有问题, 一到服务器上就出现这个问题那个问题, 究其原因, 是因为在开发机上使用administrator这个build-in帐号登录, 基本上不会遇到什么权限类问题, 而服务器上为了安全起见, 有时不使用administrator帐号登录, 而是另建帐号, 授予administrators组的权限, 这样, 问题就来了.

     

    1. 服务Services中的AppFabricCachingService安装上以后默认没有启动, 首先要启动一下.

     

    2. 运行PowerShell操作cache, 在启动start-cachecluster,停止stop-cachecluster有可能会出现如下错误信息:

     

    2.1 PS C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DistributedCacheAdministration> start-cachecluster

    Start-CacheCluster : ErrorCode<ERRCAdmin001>:SubStatus<ES0001>:Hosts are already running in the cluster.

    At line:1 char:19

    + start-cachecluster <<<<

        + CategoryInfo          : NotSpecified: (:) [Start-CacheCluster], DataCach


    2.2 PS C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DistributedCacheAdministration> stop-cachecluster

    Stop-CacheCluster : ErrorCode<ERRCAdmin032>:SubStatus<ES0001>:Invalid operation encountered on BobDesktopPc:AppFabricCachingService : Cannot open AppFabricCachingService service on computer 'BobDesktopPc'.

    At line:1 char:18

    + stop-cachecluster <<<<

        + CategoryInfo          : InvalidOperation: (:) [Stop-CacheCluster], DataC

       acheException

        + FullyQualifiedErrorId : ERRCAdmin032,Microsoft.ApplicationServer.Caching.Commands.StopCacheClusterCommand

    如何解决呢?

    解决方法: 运行PowerShell时要鼠标右键采用run as administrator的方式就ok了.

     

    3. 即使run as administrator了, 也可能遇到下面的异常

    Start-CacheHost : Could not start host BobDesktopPc:22233 : ErrorCode<ERRCAdmin003>:SubStatus<ES0001>:Time-out occurred on net.tcp://BobDesktopPc:22233.

    At line:1 char:16

    + start-cachehost <<<<

        + CategoryInfo          : NotSpecified: (:) [Start-CacheHost], DataCacheException

        + FullyQualifiedErrorId : ERRCAdmin003,Microsoft.ApplicationServer.Caching.Commands.StartCacheHostCommand

    如果启动整个cachecluster,会收到下面的错误。

    PS C:\Windows\system32> start-cachecluster

    Start-CacheCluster : ErrorCode<ERRCAdmin032>:SubStatus<ES0001>:Invalid operation encountered on BobDesktopPc:AppFabricCachingService : Cannot start service AppFabricCachingService on computer 'BobDesktopPc'.

    At line:1 char:19

    + start-cachecluster <<<<

        + CategoryInfo          : InvalidOperation: (:) [Start-CacheCluster], DataCacheException

        + FullyQualifiedErrorId : ERRCAdmin032,Microsoft.ApplicationServer.Caching.Commands.StartCacheClusterCommand

    这时,观察Services中的cacheservice, 始终保持在starting或stopping的状态,不能进行任何启,停操作, 让人以为又出了问题。
    但据我观察, 实际上,最后,还是启动了或者停止了,就是慢些,要耐心等待, 实在不行, 可以重新启动一下机器.
    以上只是笔者个人经验, 可能有别的好办法, 或者这真是个问题, 现在还不清楚, 如果哪位仁兄了解, 还请见教.

    4. 最后, 如果运行网站, 要给该网站的iis运行帐号, 默认是networkservice授访问权.

    grant-cacheallowedclientaccount NetworkService

    先写到这儿, 基本上也就这些了.

     

     

     

     

    作者:BobLiu
    邮箱:lzd_ren@hotmail.com
    出处:http://www.cnblogs.com/liuzhendong
    本文版权归作者所有,欢迎转载,未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    使用RazorGenerator对视图View进行单元测试
    C#常用获取本周、本月、本季度、本年的时间起止段代码
    Redis使用记录
    Git和ConEmu
    mongodb单索引的升序和降序
    AES 加密解密 php c#
    redis 外网连接错误
    .net mvc 分页
    检查Windows上安装的.net版本
    sqlserver跨服务器查询
  • 原文地址:https://www.cnblogs.com/liuzhendong/p/2041296.html
Copyright © 2011-2022 走看看