要在 Ubuntu 使用 HAProxy,可直接透過 apt-get 進行 HAProxy 的安裝。

apt-get install haproxy

1.png

安裝完後可調用命令並帶入參數 -v 確認安裝無誤。

haproxy -v

2.png