nawawa001 发表于 2019-1-2 09:37:09

负载均衡集群HAProxy日志篇

负载均衡集群HAProxy日志篇
网上有很多rhel7和centos7版本以前的HAProxy日志修改方法,我这里写下新版本增加haproxy日志的方法。
# cd /var/log
# mkdir haproxy
# cd haproxy
# touch haproxy.log
# chmod a+w haproxy.log
# vim /etc/rsyslog.conf
http://s3.运维网.com/wyfs02/M00/82/EB/wKiom1dk17GxiafMAABsinizhJo847.jpg
http://s3.运维网.com/wyfs02/M02/82/EB/wKiom1dk17Pj9K-6AADZE-gR0uI755.png
# vim /etc/sysconfig/rsyslog
http://s3.运维网.com/wyfs02/M01/82/EB/wKiom1dk17Ox6D7oAABMayrL2x0544.jpg
# systemctl restart rsyslog.service
# /etc/init.d/haproxy restart



页: [1]
查看完整版本: 负载均衡集群HAProxy日志篇