Red Hat Training

A Red Hat training course is available for Red Hat Satellite

7.2. 日​​​誌​​​檔​​​案​​​

幾​​​乎​​​所​​​有​​​疑​​​難​​​排​​​解​​​皆​​​從​​​查​​​看​​​相​​​關​​​日​​​誌​​​檔​​​案​​​開​​​始​​​。​​​這​​​些​​​檔​​​案​​​提​​​供​​​了​​​寶​​​貴​​​的​​​資​​​訊​​​,讓​​​您​​​知​​​道​​​裝​​​置​​​曾​​​經​​​發​​​生​​​過​​​哪​​​些​​​事​​​情​​​,或​​​是​​​查​​​看​​​哪​​​些​​​應​​​用​​​程​​​式​​​造​​​成​​​了​​​效​​​能​​​上​​​的​​​問​​​題​​​,以​​​確​​​保​​​正​​​確​​​的​​​配​​​置​​​。​​​欲​​​取​​​得​​​所​​​有​​​相​​​關​​​設​​​定​​​檔​​​的​​​路​​​徑​​​,請​​​參​​​閱​​​ 表格 7.2, “日​​​誌​​​檔​​​案​​​”

注意

/var/log/rhn/ 目​​​錄​​​中​​​可​​​能​​​會​​​有​​​已​​​編​​​號​​​的​​​日​​​誌​​​檔​​​案​​​(例​​​如​​​ /var/log/rhn/rhn_satellite_install.log.1、​​​/var/log/rhn/rhn_satellite_install.log.2 等​​​等​​​)。​​​這​​​些​​​屬​​​於​​​循​​​環​​​日​​​誌​​​,它​​​們​​​會​​​在​​​目​​​前​​​的​​​ rhn_satellite_install.log 檔​​​案​​​填​​​滿​​​至​​​ logrotate(8) daemon 所​​​指​​​定​​​的​​​大​​​小​​​,並​​​且​​​內​​​容​​​寫​​​到​​​循​​​環​​​日​​​誌​​​檔​​​案​​​時​​​所​​​被​​​以​​​ .<NUMBER> 副​​​檔​​​名​​​建​​​立​​​的​​​日​​​誌​​​檔​​​案​​​。​​​比​​​方​​​說​​​,rhn_satellite_install.log.1 包​​​含​​​了​​​最​​​舊​​​的​​​循​​​環​​​日​​​誌​​​檔​​​案​​​,而​​​ rhn_satellite_install.log.4 則​​​包​​​含​​​了​​​最​​​近​​​的​​​循​​​環​​​日​​​誌​​​。​​​

表格 7.2. 日​​​誌​​​檔​​​案​​​

元​​​件​​​/工​​​作​​​ 日​​​誌​​​檔​​​案​​​的​​​位​​​置​​​
Apache Web server /var/log/httpd/ 目​​​錄​​​
RHN Satellite /var/log/rhn/ 目​​​錄​​​
RHN Satellite 安​​​裝​​​程​​​式​​​ /var/log/rhn/rhn_satellite_install.log
資​​​料​​​庫​​​安​​​裝​​​ - Embedded Database /var/log/rhn/install_db.log
資​​​料​​​庫​​​導​​​入​​​ /var/log/rhn/populate_db.log
RHN Satellite Synchronization Tool /var/log/rhn/rhn_server_satellite.log
Monitoring 基​​​礎​​​架​​​構​​​ /var/log/nocpulse/ 目​​​錄​​​
Monitoring 通​​​知​​​ /var/log/notification/ 目​​​錄​​​
RHN DB Control - Embedded Database /var/log/rhn/rhn_database.log
RHN Task Engine(taskomatic) /var/log/messages
yum /var/log/yum.log
XML-RPC 交​​​易​​​ /var/log/rhn/rhn_server_xmlrpc.log