美文网首页
crontab: "/usr/bin/vi" exited wi

crontab: "/usr/bin/vi" exited wi

作者: 和弦之乐 | 来源:发表于2019-06-22 16:41 被阅读0次
✗ crontab -e
crontab: no crontab for xxx - using an empty one
crontab: "/usr/bin/vi" exited with status 1
✗ crontab -l
crontab: no crontab for xxx

原因:
系统没有安装vi

解决:

open .bash_profile

添加:

export EDITOR=vim

重新载入:

source .bash_profile

ok
重新执行创建crontab

相关文章

网友评论

      本文标题:crontab: "/usr/bin/vi" exited wi

      本文链接:https://www.haomeiwen.com/subject/yqdvqctx.html