今天最小化安装完centos7.2后,发现在退出crontable 时无法保存,提示出下:

[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

即可解决。