linux(red hat)系统故障及记录器--日志文件

linux(red hat)系统故障及记录器--日志文件

ID:18408750

大小:49.00 KB

页数:6页

时间:2018-09-17

linux(red hat)系统故障及记录器--日志文件_第1页
linux(red hat)系统故障及记录器--日志文件_第2页
linux(red hat)系统故障及记录器--日志文件_第3页
linux(red hat)系统故障及记录器--日志文件_第4页
linux(red hat)系统故障及记录器--日志文件_第5页
资源描述:

《linux(red hat)系统故障及记录器--日志文件》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、Linux系统故障的记录器--日志文件当系统发生异常时,除直接宕机外,一般是有告警消息的。我们可依据网管界面显示的告警消息,使用相关命令对相关对象进行检查。当告警消息不足以分析故障原因时,就需要分析服务器上的系统日志文件了。Linux在默认安装的情况下,记录系统运行消息的日志文件主要都存放在/var/log目录下,并自动进行新老轮替(由/etc/logrotate.conf配置文件决定)。其中消息涵盖范围最广的是messages文件,其他的有:dmesg,boot,cron,secure,utmp,wtmp,btmp等文件。这些文件的内容完全取

2、决于/etc/syslog.conf配置文件中的配置,即该配置文件决定了任何一条消息(消息类型,消息优先级,消息目的地)存放到何处。另外,服务器上的各业务应用程序都有各自的运行日志文件,其存放位置和解读方法由各业务应用程序决定,请见支持厂商的维护手册。首先看一下/var/log目录下有哪些日志文件(默认安装):[root@localhostjc_log]#cd/var/log[root@localhostlog]#ls-ltotal4424-rw-r-----1rootroot780Feb2615:18acpiddrwx------2rootr

3、oot4096Apr112008aidedrwx--S---2amandadisk4096Jun292004amanda-rw-------1rootroot15496May122009anaconda.log-rw-------1rootroot22968May122009anaconda.syslog-rw-------1rootroot43582May122009anaconda.xlogdrwxr-x---2rootroot4096Apr112008audit-rw-------1rootroot0Apr404:02boot.log-r

4、w-------1rootroot240Apr404:02boot.log.1-rw-------1rootroot240Mar2804:02boot.log.2-rw-------1rootroot240Mar2104:02boot.log.3-rw-------1rootroot240Mar1404:02boot.log.4drwxr-xr-x2cannacanna4096Nov12004canna-rw-------1rootroot338025Apr919:05cron-rw-------1rootroot420911Apr404:02

5、cron.1-rw-------1rootroot420362Mar2804:02cron.2-rw-------1rootroot420762Mar2104:02cron.3-rw-------1rootroot420744Mar1404:02cron.4drwxr-xr-x2lpsys4096Apr404:02cups-rw-r--r--1rootroot21400Feb2615:17dmesgdrwxr-x---2eximexim4096Aug252005eximdrwxr-xr-x2rootroot4096Feb2615:21gdmdr

6、wx------2rootroot4096May92008httpddrwxr-xr-x2htthtt4096Nov132007iiimdrwx------2rootroot4096May122009iptraf-r--------1rootroot146584Apr915:46lastlogdrwxr-xr-x2rootroot4096May122009mail-rw-------1rootroot6402Apr904:02maillog-rw-------1rootroot8964Apr404:02maillog.1-rw-------1r

7、ootroot8980Mar2804:02maillog.2-rw-------1rootroot8966Mar2104:02maillog.3-rw-------1rootroot8970Mar1404:02maillog.4drwxrwsr-x2rootmailman4096Jul312007mailman-rw-------1rootroot1055Apr919:09messages-rw-------1rootroot1574Apr404:02messages.1-rw-------1rootroot1399Mar2804:02mess

8、ages.2-rw-------1rootroot1667Mar2104:02messages.3-rw-------1rootroot2574Mar

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。