installing new crontab "/tmp/crontab.nHpqdY/crontab":20: bad hour errors in crontab file, can't install. Do you want to retry the same edit? (y/n)
时间: 2024-03-31 12:36:45 浏览: 21
这是一个提示信息,说明在安装新的 crontab 时遇到了错误。具体错误是在 crontab 文件的第 20 行发现了不正确的小时字段。因为 crontab 文件的格式是分钟 小时 日 月 星期 命令,所以小时字段应该是 0 到 23 之间的数字。你需要检查 crontab 文件的第 20 行,修正其中的后再次尝试安装。如果想重新编辑 crontab 文件,输入 y 并按 Enter,则输入 n 并按 Enter 退出。
相关问题
crontab: installing new crontab "/tmp/crontab.Wo7ac0":1: bad hour errors in crontab file, can't install. Do you want to retry the same edit?
这个错误意味着你的 crontab 文件中有一些时间格式不正确的东西。请检查你的 crontab 文件并查找时间格式错误的地方。可能需要使用 `man crontab` 命令来查看正确的时间格式。如果你找不到错误,可以尝试将 crontab 文件复制到一个文本编辑器中,并使用搜索功能查找所有时间字段并确保它们都是有效的。
no crontab for root - using an empty one crontab: installing new crontab "/tmp/crontab.Ar0WMU":1: bad hour errors in crontab file, can't install. Do you want to retry the same edit?
如果你确定已经修复了 crontab 文件中的时间格式错误,可以尝试重试相同的编辑。如果你不确定如何修复 crontab 文件中的错误,请检查 crontab 文件中的每一行,确保每个字段都是正确的格式。另外,你可以将 crontab 文件保存到其他地方,然后重新创建一个新的 crontab 文件,以确保没有其他错误。如果问题仍然存在,请检查你的 cron 服务是否正在运行,并且没有其他错误导致无法安装 crontab 文件。