安装后,两种方式存储:XML,sqlserver
建立缓存集
New-CacheCluster -Provider System.Data.SqlClient -ConnectionString “Data Source=[ServerName];Initial Catalog=[DBName];Integrated Security=True” -Size Small
Register-CacheHost -Provider System.Data.SqlClient -ConnectionString “Data Source=[ServerName];Initial Catalog=[DBName];Integrated Security=True” -Account “NT Authority\Network Service” -CachePort 22233 -ClusterPort 22234 -ArbitrationPort 22235 -ReplicationPort 22236 -HostName [CacheHostName]
Add-CacheHost -Provider System.Data.SqlClient -ConnectionString “Data Source=[ServerName];Initial Catalog=[DBName];Integrated Security=True” -Account “NT Authority\Network Service”
Add-CacheAdmin -Provider System.Data.SqlClient -ConnectionString “Data Source=[ServerName];Initial Catalog=[DBName];Integrated Security=True”
添加防火墙in/out端口配置
Use-CacheCluster
Get-CacheHost
Start-CacheCluster
Start-CacheHost hostname:22233
Stop-CacheCluster
Stop-CacheHost hostname:22233
Get-CacheAllowedClientAccounts
Grant-CacheAllowedClientAccount NetworkServic
Get-CacheStatistics default
Get-CacheConnectionString
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/hz/114770.html