知乎專欄 | 多維度架構 | 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者” |
$ 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