Installing Haproxy 1.8.9 CentOS core 7
Tambahkan beberapa file dibawah ini :/etc/security/limit.conf
haproxy soft nofile 1000000 haproxy hard nofile 1000000 #root soft nofile 1000000 #root hard nofile 1000000
haproxy soft nofile 1000000 haproxy hard nofile 1000000 #root soft nofile 1000000 #root hard nofile 1000000
vrrp_script haproxy { script "killall -0 haproxy" interval 2 weight 2 } vrrp_script sentinel { script "/etc/keepalived/scripts/redis_check.sh" interval 2 weight 2 } vrrp_instance HAP_1 { state BACKUP interface eth0 virtual_router_id 11 priority 100 advert_int 1 authentication { auth_type PASS auth_pass abcdefg # use 8 chars & something better } virtual_ipaddress { 10.42.200.210 } track_script { haproxy } } vrrp_instance SNT_1 { state MASTER interface eth0 virtual_router_id 21 priority 101 advert_int 1 authentication { auth_type PASS auth_pass abcdefg # use 8 chars & something better } virtual_ipaddress { 10.42.200.211 } track_script { sentinel } }
alias python=python3
or into ~/.bashrc
or ~/.bash_aliases
file.