gpt4 book ai didi

linux - 如何从 Shell 脚本中停止 CACHE 实例

转载 作者:太空宇宙 更新时间:2023-11-04 11:23:00 24 4
gpt4 key购买 nike

我想从 shell 脚本重新启动 CACHE(我正在使用的数据库)实例。我所做的是在名为 restart_cache 的 shell 脚本中创建一个函数。

restart_cache()
{
ccontrol stop instancename restart
}

此命令正在运行,但控件进入缓存,并且在停止缓存时卡在此处等待答案:

Do you want to broadcast a message to anyone? No =>

如何通过shell脚本在这里传递值

最佳答案

如果你想接受所有的默认值,你可以使用

ccontrol stop instancename restart quietly

关于linux - 如何从 Shell 脚本中停止 CACHE 实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16788096/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com