作者:邱文馨4966 | 来源:互联网 | 2023-05-19 00:18
在linux下输入 crontab -e 命令时,发现
no crontab for root - using an empty one
/bin/sh: /usr/bin/vi: No such file or directory
crontab: "/usr/bin/vi" exited with status 127
后来发现是没有下载vi编辑器,所以需要把默认编辑器改成vim
# echo "export EDITOR=vim" >> ~/.bashrc
# source ~/.bashrc
然后就搞定了