(时间自动同步任务)Linux中解决“You have new mail in /var/spool/mail/root”的方法

原因

因为我们 为虚拟机设置了时间自动同步任务,导致每次执行 crond 任务都会发送邮件并提示
在这里插入图片描述

/etc/profile 配置

在这里插入图片描述

–意思就是把这句“unset MAILCHECK ”追 加到/etc/profile文件末尾,取消邮箱检查。

如果你想启用的话,可以进入profile文件里最后去掉此行。
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_43674360/article/details/111316159