apt-get install build-essential make g++ libssl-dev
tar xvf haproxy-1.6.5.tar.gz
cd haproxy-1.6.5
make TARGET=linux2628 USE_OPENSSL=yes USE_ZLIB=yes
make install
cp /usr/local/sbin/haproxy /usr/sbin/
cp examples/haproxy.init /etc/init.d/haproxy
chmod 755 /etc/init.d/haproxy
mkdir -p /etc/haproxy
mkdir -p /run/haproxy
mkdir -p /var/lib/haproxy
touch /var/lib/haproxy/stats
useradd -r haproxy
No comments:
Post a Comment