MAIN MENUS
UMUM
Pertanyaan?
WA: 0817-0334-1186
WA: 0817-0334-1186
Berikut ini adalah tahapan install haproxy 2.x di linux centos 6.x
sudo yum install gcc pcre-static pcre-devel -y yum install openssl-devel
Download haproxy 2.x
wget http://www.haproxy.org/download/2.3/src/haproxy-2.3.10.tar.gz tar xvzf haproxy-2.3.10.tar.gz cd haproxy-2.3.10
installasi
make TARGET=linux-glibc-legacy USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 USE_CRYPT_H=1 USE_LIBCRYPT=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