Debian的crontab默认的编辑器是nano,用起来很不习惯,怎么才能转回vim呢?
用以下命令便可:
#update-alternatives --config editor
出现以下所示的界面:

而后选择8使用/usr/bin/vim就能够了。
PS:若是你发现你的定时没有生效,
直接 /etc/init.d/cron restart命令强制生效一下。
Debian的crontab默认的编辑器是nano,用起来很不习惯,怎么才能转回vim呢?
用以下命令便可:
#update-alternatives --config editor
出现以下所示的界面:
而后选择8使用/usr/bin/vim就能够了。
PS:若是你发现你的定时没有生效,
直接 /etc/init.d/cron restart命令强制生效一下。