Centos install haproxy
Command
yum update -y yum install haproxy mv /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.default vi /etc/haproxy/haproxy.cfg
copy to haproxy.cfg
global ulimit-n 51200 defaults log global mode tcp option dontlognull timeout connect 1000ms timeout client 150000ms timeout server 150000ms frontend 80-in bind *:80 default_backend 80-out backend 80-out server server1 original Ip maxconn 20480
Auto start haproxy
sudo chkconfig haproxy on
风吹过,我来过!
Thanks for all your hard work on this site. My niece really likes setting aside time for research and it’s simple to grasp why. Almost all notice all of the lively means you present useful items via your blog and as well as cause contribution from some others about this area of interest and my daughter is truly understanding a great deal. Enjoy the remaining portion of the year. You’re the one doing a dazzling job.
随便看看,随便转转!
感觉很不错的样子!
认真拜读中……
偶然来访,受益良多!
嗨,你好吗?伟大的博主!
仔细瞧瞧再说!
天昏地暗,也阻挡不住我对你博客的爱恋!
月黑风高夜,访问博客时!
没事就来转一转,每天多吃两碗饭!
人生短暂,开心每一天!
每逢佳节倍思亲,看你博客很用心!