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

Common log file storage locations for Linux servers!

PHPz
PHPzforward
2024-02-19 18:20:02982browse

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!

Statement:
This article is reproduced at:mryunwei.com. If there is any infringement, please contact admin@php.cn delete