修改/etc/syslog.conf
- 增加: cron.* /var/log/cron.log
重启syslog服务
-
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist 关闭
-
sudo launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist 开启
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist 关闭
sudo launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist 开启
本文标题:开启cron log
本文链接:https://www.haomeiwen.com/subject/szidchtx.html
网友评论