今天最小化安裝完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
即可解決。