首先进入 /etc 下 执行编辑指令 vim crontab 在最低端添加一条 05 12 * * * root path #----path 备份sql文件的脚本地址 ######代表每天的 12 点 05 运行这个脚本