systemd: Started Session 305 of user root. 以你之姓@ 2021-10-01 01:54 582阅读 0赞 方法1:通过脚本特殊处理 # 执行如下SHELL echo 'if ($programname == "systemd-logind" or $programname == "systemd") and ($msg contains "Starting Session" or $msg contains "Started Session" or $msg contains "Removed session" or $msg contains "New session" or $msg contains "Created slice" or $msg contains "Starting user-") then stop' >/etc/rsyslog.d/ignore-systemd-session-slice.conf # 重启rsyslog 服务 systemctl restart rsyslog 方法2: 修改配置文件 将/etc/systemd/system.conf 中 LogLevel=info 设置成如下: #LogLevel=info LogLevel=notice 方法3:系统命令 systemd-analyze set-log-level notice 转载于:https://www.cnblogs.com/halberd-lee/p/9619892.html
还没有评论,来说两句吧...