centos7安装haproxy。
采用yum方式安装。
安装的版本是1.5.18。而最新版本是2.2。
[zhao@zhaoZhongHai haproxy-2.0.14]$ sudo yum install haproxy
[sudo] password for zhao:
Loaded plugins: axelget, copr, fastestmirror, langpacks
No metadata available for base
No metadata available for copr:copr.fedorainfracloud.org:genericmappingtools:gmt
No metadata available for epel
No metadata available for extras
No metadata available for google-chrome
No metadata available for sublime-text
No metadata available for updates
Loading mirror speeds from cached hostfile
* base: mirrors.neusoft.edu.cn
* epel: mirrors.aliyun.com
* extras: mirrors.neusoft.edu.cn
* updates: mirrors.neusoft.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package haproxy.x86_64 0:1.5.18-9.el7 will be installed
--> Finished Dependency Resolution
epel/x86_64/group_gz | 95 kB 00:00
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
haproxy x86_64 1.5.18-9.el7 base 834 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 834 k
Installed size: 2.6 M
Is this ok [y/d/N]: y
Downloading packages:
haproxy-1.5.18-9.el7.x86_64.rpm | 834 kB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : haproxy-1.5.18-9.el7.x86_64 1/1
Verifying : haproxy-1.5.18-9.el7.x86_64 1/1
Installed:
haproxy.x86_64 0:1.5.18-9.el7
Complete!
[zhao@zhaoZhongHai haproxy-2.0.14]$