解决方案:
1,编辑.profile文件,增加 EDITOR=vi;export EDITOR
2,直接在命令行输入 EDITOR=vi;export EDITOR
判断方法:
$ which $EDITOR $ 如果该行显示为空,那么你就需要执行下面的两个语句了。 $ EDITOR=vi $ export EDITOR
crontab -e 如果输出结果是一组数字的时候就可以使用上面的方法来解决。