Home > Computer Tutorials > Computer Knowledge > Common log file storage locations for Linux servers!

Common log file storage locations for Linux servers!

PHPz
Release: 2024-02-19 18:20:02
forward
1059 people have browsed it

Common log file storage locations for Linux servers!

In Linux servers, log files are important system information files, which record many important system events, including user login information, system startup information, and system security information. , email-related information, various service-related information, etc., which play a very important role. So where are server logs stored in Linux? The following is a detailed introduction.

On Linux servers, common log files are generally stored in the following locations:

 1./var/log/:

This directory contains most of the log files of the system and services. Some of the common log files include:

 /var/log/messages: The overall log messages of the system, including records of kernel, services and other important events.

 /var/log/syslog: System log file, containing messages about system programs and services.

 /var/log/auth.log: Authorization and authentication related logs, recording user login, su command and other information.

 /var/log/dmesg: Kernel ring buffer messages, including startup information during boot.

 2./var/log/nginx/:

If you use nginx as a web server, related log files are usually stored in this directory.

 3./var/log/apache2 or /var/log/httpd/:

If you use Apache as your web server, related log files are usually stored in this directory.

 4./var/log/mysql/or/var/log/mariadb/:

If you use MySQL or MariaDB database server, related log files are usually stored in this directory.

The above is the detailed content of Common log file storage locations for Linux servers!. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:mryunwei.com
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template