1.Haproxy:
http://www.haproxy.org/Current version is 1.5.12
2. Prepare the installation environment:
Two front-end servers install HA and keepalived:
192.168.10.204
192.168.10.205
To resolve dependencies:
Yum Install OpenSSL
3, installation Haproxyt:
Unpack the installation package:
[[email protected] haproxy] #tar xvf haproxy-1.5.12.tar.gz
Go to the decompression path:
[email protected] haproxy]#CD haproxy-1.5.12
Specify the build kernel version and installation path:
[[email protected] haproxy] #make target=linux26 prefix=/opt/haproxy
Copy the configuration file to the installation path:
[[email protected] haproxy] #cp examples/haproxy.cfg/opt/haproxy/
Start the service:
[Email protected] haproxy]#/usr/local/haproxy/sbin/haproxy-f/usr/local/haproxy/haproxy.cfg
4. Verify that the startup is successful:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/5C/wKiom1VHL3DwavRhAACypxLVvvo144.jpg "title=" 1.jpg " alt= "Wkiom1vhl3dwavrhaacypxlvvvo144.jpg"/>
This article is from the "Linux" blog, so be sure to keep this source http://zhangshijie.blog.51cto.com/806066/1641783
Compile and install Haprox 1.5.2