负载均衡集群HAProxy日志篇
网上有很多rhel7和centos7版本以前的HAProxy日志修改方法,我这里写下新版本增加haproxy日志的方法。
[root@wjb10000 ~]# cd /var/log
[root@wjb10000 log]# mkdir haproxy
[root@wjb10000 log]# cd haproxy
[root@wjb10000 haproxy]# touch haproxy.log
[root@wjb10000 haproxy]# chmod a+w haproxy.log
[root@wjb10000 /]# vim /etc/rsyslog.conf
[root@wjb10000 /]# vim /etc/sysconfig/rsyslog
[root@wjb10000 ~]# systemctl restart rsyslog.service
[root@wjb10000 ~]# /etc/init.d/haproxy restart
转载于:https://blog.51cto.com/wjb10000/1790543