apache錯(cuò)誤日志在哪

apache錯(cuò)誤日志在哪

apache錯(cuò)誤日志在哪?

發(fā)行版的默認(rèn)apache錯(cuò)誤日志位置:

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

要查找確切的apache錯(cuò)誤日志文件位置,可以使用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相關(guān)知識(shí),請(qǐng)?jiān)L問(wèn)Apache使用教程欄目!

以上就是

? 版權(quán)聲明
THE END
喜歡就支持一下吧
點(diǎn)贊11 分享