OS X将syslog发送到远程框


3

出于某种原因,我很难理解OS X如何处理init,cron和“normal”守护进程maint等事情。做nix工作花了太多年。

如何在10.6 OS X机箱上配置syslogd以将日志发送到syslog服务器?

Answers:


3

是一个简单的问题:

*.*       @remote_ip

到/etc/syslog.conf

然后发行

launchctl stop com.apple.syslogd
launchctl start com.apple.syslogd

感叹 /etc/rc.d/init.d/syslogd restart发生了什么。。。


1
@skarface:Apple用launchdMac OS X 10.4 替换了cron和init (developer.apple.com/macosx/launchd.html)。一旦你了解它,它真的没那么糟糕。
Chealion 2010年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.