小编Shu*_*dav的帖子

在Ubuntu中配置haproxy?

配置haproxy统计信息时出现以下问题:

haproxy.service的作业失败,因为控制进程退出并显示错误代码。有关详细信息,请参见“ systemctl status haproxy.service”和“ journalctl -xe”。

下面是我的配置文件代码:

listen  stats   192.168.10.10:1936
        mode            http
        log             global    
        maxconn         10    
        clitimeout      100s
        srvtimeout      100s
        contimeout      100s
        timeout queue   100s
        stats enable
        stats hide-version
        stats refresh 30s
        stats show-node
        stats auth admin:password
        stats uri  /haproxy?stats

global
    log /dev/log    local0
    log /dev/log    local1 notice
    chroot /var/lib/haproxy
    stats socket /run/haproxy/admin.sock mode 660 level admin
    stats timeout 30s
    user haproxy
    group haproxy
    daemon

    # Default SSL material locations
    ca-base /etc/ssl/certs
    crt-base /etc/ssl/private

    # Default ciphers to use …
Run Code Online (Sandbox Code Playgroud)

haproxy

5
推荐指数
1
解决办法
5583
查看次数

标签 统计

haproxy ×1