Show Table of Contents
5.2. global 設定
global(全域)設定能配置用於執行 HAProxy 的所有伺服器。典型的 global 一節看起來像是:
global
log 127.0.0.1 local2
maxconn 4000
user haproxy
group haproxy
daemon
在以上配置中,管理者已配置服務來
log(記錄)所有條目至本地的 syslog 伺服器。預設上,這可以是 /var/log/syslog 或使用者指定的地方。
maxconn 參數會指定同步連上服務的最大連線數量。預設上,最大值是 2000。
user 與 group 參數能用來指定 haproxy 程序所屬的使用者名稱與群組名稱。
最後,
daemon 參數能讓 haproxy 在背景中執行。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.