HAproxy 基础10

2022-01-19 11:11:37 浏览数 (1)

进行访问

过程中会弹出对话框,输入帐号密码后,就可以看到监控界面


命令汇总

  • md5sum haproxy-1.6.3.tar.gz
  • tar -xzvf haproxy-1.6.3.tar.gz
  • make TARGET=linux2628 ARCH=x86_64 PREFIX=/usr/local/haproxy
  • make install PREFIX=/usr/local/haproxy
  • ll /usr/local/haproxy/
  • tree /usr/local/haproxy/
  • /usr/local/haproxy/sbin/haproxy -vv
  • ll /usr/local/src/haproxy/haproxy-1.6.3/examples/*.cfg
  • cp /usr/local/src/haproxy/haproxy-1.6.3/examples/transparent_proxy.cfg /etc/haproxy/
  • grep -v "^#" /etc/haproxy/transparent_proxy.cfg
  • sbin/nginx -t -c conf/nginx.conf
  • sbin/nginx -c conf/nginx.conf
  • netstat -ant | grep 80
  • vim /etc/haproxy/transparent_proxy.cfg
  • grep -v "^#" /etc/haproxy/transparent_proxy.cfg
  • /usr/local/haproxy/sbin/haproxy -f /etc/haproxy/transparent_proxy.cfg
  • netstat -ant | grep 1234
  • vim /etc/haproxy/transparent_proxy.cfg
  • grep -v "^#" /etc/haproxy/transparent_proxy.cfg
  • /usr/local/haproxy/sbin/haproxy -f /etc/haproxy/transparent_proxy.cfg

原文地址

0 人点赞