[英]How to disable systemd logging to console?
I am using systemd in Debian Jessie, and systemd outputs lots of messages during system boot 我在Debian Jessie中使用systemd,并且systemd在系统引导期间输出很多消息
Jul 27 00:13:18 Rastes systemd[1]: systemd-tmpfiles-clean.service: main process exited, code=exited, status=1/FAILURE
Jul 27 00:13:18 Rastes systemd[1]: Failed to start Cleanup of Temporary Directories.
Jul 27 00:13:18 Rastes systemd[1]: Unit systemd-tmpfiles-clean.service entered failed state.
Jul 28 00:13:58 Rastes systemd[1]: systemd-tmpfiles-clean.service: main process exited, code=exited, status=1/FAILURE
Jul 28 00:13:58 Rastes systemd[1]: Failed to start Cleanup of Temporary Directories.
Jul 28 00:13:58 Rastes systemd[1]: Unit systemd-tmpfiles-clean.service entered failed state.
I have tried to add kernel arguments to GRUB_CMDLINE_LINUX_DEFAULT like 我试图将内核参数添加到GRUB_CMDLINE_LINUX_DEFAULT像
systemd.log_target=/dev/null systemd.journald.forward_to_console=0 systemd.default_standard_output=null systemd.default_standard_error=null
but systemd continue to output logging to console. 但是systemd继续将日志记录输出到控制台。
How to switch off logging into console? 如何关闭登录控制台? Thank you very much.
非常感谢你。
您可以在journald.conf(freedesktop.org/software/systemd/man/journald.conf.html)中关闭ForwardToConsole =。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.