Ubuntu 22.04 安装HA-proxy
官网
资料
# 更新系统包列表:
sudo apt update
# 安装 HAproxy
sudo apt install haproxy -y
# 验证安装
haproxy -v # 如下图
配置 Haproxy
在这里插入代码片
》》》配置完之后 重启 Haproxy
sudo systemctl restart haproxy
补充几个常用命令
sudo systemctl enable haproxy 开机启动
sudo systemctl status haproxy 查看状态
sudo systemctl stop haproxy 停止
sudo systemctl start haproxy 开启