如何安装完centos7.2后在crontable退出时无法保存的问题

今天就跟大家聊聊有关如何安装完centos7.2后在crontable退出时无法保存的问题,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。

今天最小化安装完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

即可解决。

看完上述内容,你们对如何安装完centos7.2后在crontable退出时无法保存的问题有进一步的了解吗?如果还想了解更多知识或者相关内容,请关注行业资讯频道,感谢大家的支持。