提供:すだちWiki
移動先: 案内検索

サーバーエラーの原因分析時に見るログの場所

CentOS 6.4 で確認したエラーログの場所です。

Apacheのログ

場所:/var/log/httpd/access_log

  • PHPのエラーも記録されます。
[root@host2 ~]# tail -f /var/log/httpd/access_log

MySQLのログ

場所:/var/log/mysqld.log

[root@host2 ~]# tail -f /var/log/mysqld.log

MTA(メール系)のログ

場所:/var/log/maillog

[root@host2 ~]# tail -f /var/log/maillog

tail コマンドのの停止方法

「Ctrl」キーを押しながら「c」キーを押す。