Upgrading Haproxy1.5 to 1.7


#1

Hello,

Can you tell me how to upgade my haproxy version from 1.5 to 1.7 ( Running on Centos 7 ) without losing my configuration.

Thanks in advance.


#2

Install and Upgrade HAProxy from 1.5 to 1.7

wget https://www.haproxy.org/download/1.7/src/haproxy-1.7.8.tar.gz
tar -xzf haproxy-1.7.8.tar.gz
cd haproxy-1.7.8
make TARGET=linux2628 USE_PCRE=1 USE_PCRE_JIT=1 USE_OPENSSL=1 USE_ZLIB=1 USE_REGPARM=1
sudo make install
sudo cp -f /usr/local/sbin/haproxy /usr/sbin # Overwrite version 1.5 with new 1.7
sudo service haproxy restart
sudo chkconfig haproxy on