CentOS 7 Yum安装Haproxy1.8
2019-07-18 18:19:48

CentOS 7 默认的haproxy版本是1.5.这里介绍如何使用yum安装haproxy1.8


安装 Software Collections (SCL) repository 源https://www.softwarecollections.org/en/以获取最新版本的haproxy


sudo yum install centos-release-scl -y


安装haproxy


sudo yum install rh-haproxy18-haproxy rh-haproxy18-haproxy-syspaths -y


OK,现在你可以开始使用了:

开启:systemctl start rh-haproxy18-haproxy

停止:systemctl stop rh-haproxy18-haproxy

开机启动: systemctl enable rhhaproxy18-haproxy