AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1094025
Accepted
Peedy
Peedy
Asked: 2022-02-18 11:51:45 +0800 CST2022-02-18 11:51:45 +0800 CST 2022-02-18 11:51:45 +0800 CST

haproxy:关闭或更改统计页面的 80 端口

  • 772

http-port 必须可用于其他用途。
统计页面的 80 端口必须关闭或移动到另一个端口。在该部分中
删除会禁用该页面。 返回 '​​0' -> 端口 80 已经可以访问。mode httpdefaultecho >/dev/tcp/hostname/80

http port configuration stats haproxy
  • 2 2 个回答
  • 198 Views

2 个回答

  • Voted
  1. Best Answer
    Malcolm turnbull
    2022-02-18T23:48:44+08:002022-02-18T23:48:44+08:00

    您还没有发布您的 HAProxy 配置文件?

    您应该能够指定您想要统计信息的端口,即

    listen stats
    bind *:8080
            mode http
            option forwardfor
            option httpclose
            stats enable
            stats show-legends
            stats refresh 5s
            stats uri /stats
            stats realm Haproxy\ Statistics
            stats auth loadbalancer:loadbalancer
            stats admin 
    

    您可以在 url 使用用户名“loadbalancer”和密码“loadbalancer”访问:

    http://myipaddress:8080/stats

    • 0
  2. Peedy
    2022-02-21T04:51:26+08:002022-02-21T04:51:26+08:00

    我的解决方案:

    listen stats
      bind *:9010
      bind :::9010 v6only
      mode http
      option forwardfor
      option httpclose
      stats enable
      stats uri     /stats
      stats refresh 5s
      stats show-legends
      stats realm Haproxy\ Statistics
      stats auth loadbalancer:loadbalancer
    
    • 0

相关问题

  • 设置 http 代理以使用 Web 界面?

  • 无法连接到 Ubuntu Desktop 中的端口 80 或 VMWare Workstation 6.52 中的 Server 9.04

  • IIS 7.5 (Windows 7) - HTTP 错误 401.3 - 未经授权

  • 为什么有些网站的网址中没有“www”就无法显示?[关闭]

  • Tomcat 6 HTTP 日志滚动和清除

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve