MATLAB 帮助中心
将 MATLAB 会话连接到已在运行的持久性服务
attach(ctrl)
attach(ctrl) 将 MATLAB® 会话连接到已在运行的持久性服务。
ctrl
示例
全部折叠
将 MATLAB 代码关联到持久性服务。
使用 mps-cache (MATLAB Production Server) 或使用仪表板从系统命令行在 MATLAB 会话之外启动持久性服务。假设您在端口 8899 上使用连接名称 myOutsideRedisConnection 启动了该服务,请从 MATLAB 桌面将 MATLAB 会话关联到该服务。
mps-cache
8899
myOutsideRedisConnection
ctrl = mps.cache.control('myOutsideRedisConnection','Redis','Port',8899); attach(ctrl)
mps.cache.Controller
持久性服务控制器,以 mps.cache.Controller 对象形式表示。
示例: attach(ctrl)
在 R2018b 中推出
detach | start | stop | restart
detach
start
stop
restart
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处