haproxy 处理不同资源的负载均衡并配置日志
发布时间
阅读量:
阅读量
一、haproxy日志配置
1.在server2下haproxy的配置文件中添加回环
> 1. vi /etc/haproxy/haproxy.cfg ##修改配置文件
>
> 2. systemctl restart haproxy
>
>
>
>
> AI写代码bash

2.修改日志配置文件
> 1. vi /etc/rsyslog.conf
>
> 2.
>
> 3. # Provides UDP syslog reception
>
> 4. 解开如图所示的两行注释 ##接受haproxy日志
>
> 5.
>
> 6. # Log anything (except mail) of level info or higher.
>
> 7. #
全部评论 (0)
还没有任何评论哟~
