apache错误日志在哪

apache错误日志在哪

apache错误日志在哪?

发行版的默认apache错误日志位置:

RHEL / Red Hat / CentOS / Fedora – / var / log / httpd / error_log Debian / Ubuntu – /var/log/apache2/error.log FreeBSD – /var/log/httpd-error.log

要查找确切的apache错误日志文件位置,可以使用grep命令:

# grep ErrorLog /usr/local/etc/apache22/httpd.conf # grep ErrorLog /etc/apache2/apache2.conf # grep ErrorLog /etc/httpd/conf/httpd.conf

样本输出:

# ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a  ErrorLog "/var/log/httpd-error.log"

更多Apache相关知识,请访问Apache使用教程栏目!

以上就是

© 版权声明
THE END
喜欢就支持一下吧
点赞11 分享