using centos 7 as haproxy 1.8
# This GNU Makefile supports different OS and CPU combinations.
#
# You should use it this way :
# [g]make TARGET=os ARCH=arch CPU=cpu USE_xxx=1 ...# systemctl restart haproxy# cp haproxy-1.7.5/examples/haproxy.init /etc/init.d/haproxy$ wget http://www.haproxy.org/download/1.7/src/haproxy-1.7.5.tar.gz -O ~/Packages/haproxy.tar.gz# useradd -r haproxy$ make TARGET=generic ARCH=native CPU=x86_64 -j8# yum info haproxy# chmod 755 /etc/init.d/haproxy$ cd haproxy-1.7.5/global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
frontend http_front
bind *:80
stats uri /haproxy?stats
default_backend http_back
backend http_back
balance roundrobin
server my_server private_IP:80 check
server my_server private_IP:80 check
Also in C++:
- Title
- ohmyzsh
- Category
- C++
- Title
- how to I list powershell functions
- Category
- C++
- Title
- install vue cli
- Category
- C++
- Title
- ubuntu record video change time
- Category
- C++
- Title
- not digitally signed powershell
- Category
- C++
- Title
- git won't ignore .env
- Category
- C++
- Title
- kivy install ubuntu 20
- Category
- C++
- Title
- install spotify ubuntu
- Category
- C++
- Title
- open realm studio ubuntu
- Category
- C++
- Title
- adb shell grep command
- Category
- C++
- Title
- centos install specific kernel headers
- Category
- C++
- Title
- git config
- Category
- C++
- Title
- pyenv install ubuntu
- Category
- C++
- Title
- brew install rosetta
- Category
- C++
- Title
- Install Lumen CSV Reader package from Nuget Package Manager in Visual Studio
- Category
- C++
- Title
- react native reactotron bug
- Category
- C++
- Title
- git add -A ignore large files
- Category
- C++
- Title
- how to upgrade pip
- Category
- C++
- Title
- how to extract rar file in ubuntu
- Category
- C++
- Title
- show internet password
- Category
- C++
- Title
- how to create symlink in linux
- Category
- C++
- Title
- linux show file line size
- Category
- C++
- Title
- uninstall certbot ubuntu 16 nginx
- Category
- C++
- Title
- No module named 'numpy'
- Category
- C++