知乎专栏 | 多维度架构 |
目录
$ apt-cache search haproxy haproxy - fast and reliable load balancing reverse proxy sudo apt-get install haproxy
启用HAProxy
$ sudo vim /etc/default/haproxy # Set ENABLED to 1 if you want the init script to start haproxy. #ENABLED=0 ENABLED=1 # Add extra flags here. #EXTRAOPTS="-de -m 16"
ENABLED=0 改为 ENABLED=1