Home  >  Article  >  Operation and Maintenance  >  Where are the log files of the centos system?

Where are the log files of the centos system?

王林
王林Original
2020-03-20 16:52:2010216browse

Where are the log files of the centos system?

1./var directory

Some databases such as MySQL are under /var/lib. The default storage location for users’ unread emails is /var/spool/ mail

2.:/var/log/

System boot log:/var/log/boot.log, for example:

Feb 26 10:40:48 sendmial : sendmail startup succeeded #邮件服务启动成功!

(recommended tutorial: centos usage tutorial)

System logs generally exist under /var/log. Commonly used system logs are as follows:

/var/log/dmesg      #核心启动日志
/var/log/messages   #系统报错日志,系统启动时的状态信息,运行时的状态信息。比如某个人的身份切换为 root等。如果服务正在运行,比如 DHCP 服务器,您可以在 messages 文件中观察它的活动。

Where are the log files of the centos system?

File/var /run/utmp records the currently logged in user.

The file /var/log/lastlog records the last login information of each user.

File /var/log/btmp Logs bad login attempts.

less /var/log/auth.log Operations that require identity confirmation.

Recommended related video tutorials: linux video tutorial

The above is the detailed content of Where are the log files of the centos system?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn