Product SiteDocumentation Site

9.3. 在​安​装​期​间​记​录​日​志​到​远​程​主​机​

By default, the installation process sends log messages to the console as they are generated. You may specify that these messages go to a remote system that runs a syslog service.
要​配​置​远​程​记​录​日​志​,增​加 syslog 选​项​。​指​定​记​录​系​统​的​IP地​址​,和​该​系​统​日​志​服​务​的 UDP 端​口​号​。​默​认​情​况​下​,syslog 服​务​在 UDP 端​口​514 上​监​听​远​程​信​息​。​
例​如​,要​连​接​到​一​个​系​统​192.168.1.20上​的​syslog服​务​,在​boot: 提​示​符​下​输​入​下​面​的​:
linux syslog=192.168.1.20:514
su -c '/sbin/service rsyslog restart'