haproxy:install-haproxy-2-centos-6
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
Layanan
Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |haproxy/install-haproxy-2-centos-6.txt · Last modified: 2023/10/10 23:01 by kbadmin