在Centos 6.2上,试图将内核日志重定向到串行控制台,我遇到了一个问题,在这个问题上,agetty似乎每按几次键就会重新生成一次。
也就是说,我在输入的过程中(在登录之后)得到一个登录提示。
为了进一步调查这个问题,我正在寻找agetty日志的位置,但无济于事。我可以在哪里以及如何查看更新的年龄进程的日志消息?
发布于 2012-07-29 17:50:37
"agetty“命令manpage的"diagnostics”部分声明:
Depending on how the program was configured, all diagnostics are written to
the console device or reported via the syslog(3) facility. Error messages are
produced if the port argument does not specify a terminal device; if there is
no utmp entry for the current process (System V only); and so on.syslog工具默认写入"/var/log/messages“文件,但可以通过editing its configuration file "/etc/syslog.conf”将其配置为写入另一个文件。
最后,如果你得到的错误是“重新生成太快”,你应该检查你的"/etc/inittab“文件,如here所述。
https://stackoverflow.com/questions/11553302
复制相似问题