linux - 如何解决这个问题 **root 没有 crontab - 使用空的 888**?

标签 linux cron ubuntu-16.04

我想在 ubuntu 服务器中设置 cron,但是当我运行命令 crontab -e 时,我看到此状态或错误。没有 root 的 crontab - 使用空的 888 我该如何解决这个问题。

最佳答案

我知道你的意思,当你运行命令 crontab -e 时,它会显示一行“888”。 那是因为您选择了 /bin/ed 作为编辑器,但您对它并不熟悉。

只需 vi ~/.selected_editor ,您就会看到它并将值更改为 /usr/bin/vi

然后再次运行命令crontab -e,这将是你想要的。

关于linux - 如何解决这个问题 **root 没有 crontab - 使用空的 888**?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51830403/

相关文章:

c++ - VSCode+LLDB 调试在 Vagrant-Ubuntu 中无法正常工作

linux - 实例有限的 cron 作业

nginx - 在多个站点上使用Nginx设置Varnish

apache - 安装 phpmyadmin 时卡住

c - 使用 Linux 接收系统 key 的信号?

linux - Ipython 笔记本(+ 内联 matplotlibplots)+ shell + tmux

random - Cron 在几个小时内安排一个任务

php - 如何解决 Php 7 找不到 Sqlite3?

linux - libXtst 随 yum 安装;/usr/lib/libXtst.so.6 在哪里?

php - 为什么 cron 作业不能在浏览器上运行,但在终端上运行完美