agetty日志文件位置

时间:2012-07-19 02:57:26

标签: centos tty

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

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

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

1 个答案:

答案 0 :(得分:2)

“agetty”命令manpage的“诊断”部分指出:

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所述。

相关问题