MPS-CACHE
从命令行控制持续服务视窗,,,,Linux, 和苹果系统系统
句法
MPS-CACHE [
手术
] [-Cserver_path
] [ - 联系Connection_Name
] [ - all] [ - configfileprovider_config_file_path
] [ - 钥匙cache_access_key_string
] [ - 暂停秒
] [ - Verbose |-v] [---螺旋| -H]
描述
MPS-CACHE [
根据指定的手术
] [-Cserver_path
] [ - 联系Connection_Name
] [ - all] [ - configfileprovider_config_file_path
] [ - 钥匙cache_access_key_string
] [ - 暂停秒
] [ - Verbose |-v] [---螺旋| -H]手术
。支持的操金宝app作是开始
,,,,停止
,,,,重新开始
,,,,ping
,,,,附
, 和分离
。
选项Connection_Name
从JSON文件获得mps_cache_config
。此文件必须由管理员创建,并放置在config
服务器实例的文件夹。JSON结构mps_cache_config
文件是:
{“ connections”:{“”:{“提供者”:“ redis”,“ host”:“ <主机名>”,“ port”: }}}}}
,,,,
和
是管理员可以设置的唯一字段
必须是一个非SSL端口。当前,Redis™是唯一支持的持久服务提供商。金宝app您可以与持久性提供者有多个连接。
输入参数
|
笔记 您不能启动,停止或重新启动远程持久性服务。 |
|
通往服务器实例的路径。 |
|
连接到持久服务的名称。指定 |
|
连接到所有指定的持久性服务 |
|
通往持久性提供商配置文件的路径。 |
|
访问键字符串连接到Azure®从Azure Portal获得的REDIS缓存实例。例如,请参阅ping远程持久性服务。 |
|
设定限制多长时间 |
|
显示与控制持续服务有关的系统消息。 |
|
显示使用的选项 |
例子
开始持久服务
在Windows上启动持久性服务®假设连接名称我的连接
已在文件中定义mps_cache_config
。
在系统命令行中键入以下内容:
mps -cache start -c“ h:\ server \ mps_instance” - 连接myredisconnection mps -cache ping -c“ h:\ server \ server \ mps_instance” - connection myredisconnection
将ping发送到Localhost上的Redis:9710。REDIS服务在Localhost上运行:9710。
相应的mps_cache_config
该示例的文件如下:
{“连接”:{“ myredisconnection”:{“提供者”:“ redis”,“ host”:“ localhost”,“ port”:9710}}}}}
ping远程持久性服务
假设在Azure门户和连接名称中设置了Azure Redis Cache实例Myremoteazurerediscacheconnection
已在文件中定义mps_cache_config
。
mps -cache ping -c“ h:\ server \ mps_instance” - 连接myremoteazurerediscacheconnection -key +wci8pu0yoddmsw1llc7ginkjtrjtrjtrjtrjtrjtrjmlbroq9rqqdmtu = =
将ping发送到azure.redis.cache.windows.net:6379上的redis。REDIS服务在Azure.Redis.cache.windows.net上运行。
相应的mps_cache_config
该示例的文件如下:
{“ Connections”:{“ MyRedisconnection”:{“提供者”:“ Redis”,“主机”:“ Localhost”,“ port”:9710},“ MyremoteazurerediscacheConnection”::“ azure.redis.cache.windows.net”,“ port”:6379}}}}}}
提示
要检索访问密钥以连接到Azure redis缓存实例:
登录到您的Azure门户,然后选择您的Azure Redis Cache实例。
选择概述和下钥匙点击显示访问键。
在生成的刀片中,复制下列出的访问键字符串基本的。