vim /etc/syslog.conf
添加:
local3.* /var/log/haproxy.log
local0.* /var/log/haproxy.log
[root@cacti ~]# vim /etc/sysconfig/syslog
修改:
SYSLOGD_OPTIONS="-r -m 0"
service syslog restart
本文转自aaron428 51CTO博客,原文链接:http://blog.51cto.com/aaronsa/1741520,如需转载请自行联系原作者