# 添加配置到/etc/rsyslog.d/50-default.conf cat <<'EOF' | sudo tee -a /etc/rsyslog.d/50-default.conf *.info;mail.none;authpriv.none;cron.none /var/log/messages EOF # 重启rsyslog服务 sudo systemctl restart rsyslog.service