0

在 Centos 6.2 上,尝试将内核日志重定向到串行控制台时,我遇到了一个问题,agetty 似乎每隔几次按键就会重新生成。

也就是说,我在输入过程中(登录后)收到登录提示。

为了进一步调查这个问题,我正在寻找agetty日志的位置,但无济于事。在哪里以及如何查看重生的 getty 进程的日志消息?

4

1 回答 1

2

“agetty”命令手册页的“诊断”部分指出:

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”文件,但可以通过编辑其配置文件“/etc/syslog.conf”将其配置为写入另一个文件。

最后,如果您得到的错误是“重生太快”,您应该检查您的“/etc/inittab”文件,如此所述。

于 2012-07-29T09:50:36.893 回答