我正在尝试使用NCache开源。我已经在我的本地机器上安装了它。我已经按照指示编辑了config.ncconf文件。已使用Restart-Service命令重新启动服务。
<cache-config cache-name="myreplicatedcache">
<cache-settings inproc="False">
<logging enable-logs="True" trace-errors="True" trace-debug="False" log-path=""/>
<performance-counters enable-counters="True" snmp-port="0"/>
<cache-notifications item-remove="False" item-add="False" item-update="False"/>
<cleanup interval="15sec"/>
<storage type="heap" cache-size="1024mb"/>
<eviction-policy default-priority="normal" eviction-ratio="5%"/>
<cache-topology topology="replicated">
<cluster-settings operation-timeout="60sec"
stats-repl-interval="600sec" use-heart-beat="False">
<cluster-connection-settings port-range="1" connection-retries="2"
connection-retry-interval="10secs" cluster-port="7804"/>
</cluster-settings>
</cache-topology>
<client-death-detection enable="False" grace-interval="60sec"/>
</cache-settings>
<cache-deployment>
<servers>
<server-node ip="192.168.0.101"/>
</servers>
</cache-deployment>
</cache-config>尽管如此,我仍然无法启动我注册的新缓存。我遇到-“指定的缓存未注册”。我不确定为什么会发生这种情况,因为我确定它是注册的。下面是它看起来的样子:

发布于 2020-07-09 23:18:30
端口是否打开并允许流量?您可以尝试关闭windows防火墙,如果可行,则定义允许通信的规则。
您还可以尝试使用分区缓存配置
<cache-config cache-name="myPartitionedCache" alias="" config-id="44fb997a-f6a7-433b-9439-7ef9de9f47c7" config-version="0">
<cache-settings inproc="False">
<logging enable-logs="True" trace-errors="True" trace-debug="False" log-path=""/>
<performance-counters enable-counters="True" snmp-port="0"/>
<cache-notifications item-remove="False" item-add="False" item-update="False"/>
<cleanup interval="15sec"/>
<storage type="heap" cache-size="1024mb"/>
<eviction-policy default-priority="normal" eviction-ratio="5%"/>
<cache-topology topology="partitioned">
<cluster-settings operation-timeout="60sec" stats-repl-interval="60sec" use-heart-beat="False">
<cluster-connection-settings port-range="1" connection-retries="2" connection-retry-interval="2secs" cluster-port="7801"/>
</cluster-settings>
</cache-topology>
<client-death-detection enable="False" grace-interval="60sec"/>
</cache-settings>
<cache-deployment>
<servers>
<server-node ip="yourIPHere"/>
</servers>
</cache-deployment>
</cache-config>https://stackoverflow.com/questions/62546705
复制相似问题