CentOS LAMP服务日志默认路径如下:
/var/log/messages
/var/log/secure
/var/log/httpd/access_log
/var/log/httpd/error_log
/var/log/mysql/error.log
/var/log/mysql/slow-query.log
说明:部分路径可能因配置不同有所差异,可通过查看服务配置文件(如Apache的httpd.conf、MySQL的my.cnf)确认具体路径。
httpd.conf
my.cnf