裝完CentOS之後每出入一個命令後,如今都會提示「You have new mail in /var/spool/mail/root」,看着有點鬧心。想之後不提示這個的方法以下:
vim
方法一:bash
echo "unset MAILCHECK" >> /etc/profile
方法二:ide
vim /usr/share/logwatch/default.conf/logwatch.conf #將下面內容: MailTo = root #修改成: MailTo = ****@126.com #指定要接收的郵箱