50% off 所有套餐限时优惠,起价 $2.48/mo
HAProxy

HAProxy

HAProxy 是高性能的 TCP 与 HTTP 负载均衡器。经百万 RPS 工作负载验证,被 GitHub、Reddit、Stack Overflow 和 Twitter 广泛使用。当 NGINX 或 AWS ALB 的速度或功能不足时,它是首选的负载均衡方案。提供免费社区版和付费企业版。

Version

Latest

Operating System

Ubuntu Server 24.04 LTS

Min. RAM

1 GB

IP Types

IPV4,IPV6

Version Check

haproxy -v

重要文件与目录

  • Config file: /etc/haproxy/haproxy.cfg
  • Binary: /usr/sbin/haproxy

Service Management

Start HAProxy:

systemctl start haproxy

配置变更后重启:

systemctl restart haproxy

Check status:

systemctl status haproxy

查看实时日志:

journalctl -u haproxy -f

Configuration

Edit config:

vim /etc/haproxy/haproxy.cfg

Validate config:

haproxy -c -f /etc/haproxy/haproxy.cfg

变更后重启:

systemctl restart haproxy

Notes

  • HAProxy 已安装,但未自动完成配置
  • Ensure /etc/haproxy/haproxy.cfg 请在使用前确认已正确设置
  • 每次变更后都需要重启服务
  • 默认配置为空,服务将无法正常运行

更多 DevOps 工具

Related apps.

立即部署 HAProxy。 From $2.48/mo.