[root@localhost ~]# crontab -e
no crontab for root - using an empty one
crontab: installing new crontab
"/tmp/crontab.5wI27z":1: bad minute
errors in crontab file, can‘t install.
Do you want to retry the same edit?
Enter Y or N
解决方案:
echo export EDITOR=/usr/bin/vi >> ~/.bashrc
即可解决。
原文:https://blog.51cto.com/14212919/2463101