crontab的坑 1、 命令 全路径 (eg:which mysql) 2、执行脚本 (脚本中加上#!/bin/bash) eg: /bin/bash script.sh 3、 输出信息(>>) 使用全路径 eg: /script/a.txt