====== Install Haproxy 2.x di Centos 6 ======
Berikut ini adalah tahapan install haproxy 2.x di linux centos 6.x
sudo yum install gcc pcre-static pcre-devel zlib-devel openssl-devel gcc pcre-devel tar make -y
Download haproxy 2.x
wget https://www.haproxy.org/download/2.7/src/haproxy-2.7.9.tar.gz
tar xvzf haproxy-2.7.9.tar.gz
cd haproxy-2.7.9
installasi
make TARGET=linux-glibc-legacy USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 USE_CRYPT_H=1 USE_LIBCRYPT=1 USE_THREAD=1
dan kemudian
make install
kemudian
sudo mkdir -p /etc/haproxy
sudo mkdir -p /var/lib/haproxy
sudo touch /var/lib/haproxy/stats
sudo ln -s /usr/local/sbin/haproxy /usr/sbin/haproxy
sudo cp examples/haproxy.init /etc/init.d/haproxy
sudo chmod 755 /etc/init.d/haproxy
sudo systemctl daemon-reload
sudo chkconfig haproxy on
sudo useradd -r haproxy
haproxy -v
cd /etc/haproxy/
nano haproxy.cfg
haproxy -f haproxy.cfg
systemctl start haproxy
systemctl status haproxy
Referensi
- https://medium.com/@warlord77/haproxy-2-0-centos-7-setup-6ca655bec840