未分类

越来越慢了,还是做中继吧

By jere on 2015-08-08 0 Comments

在阿里云上还有一台机器 可以用。

apt-get install software-properties-common
apt-add-repository ppa:vbernat/haproxy-1.5
apt-get update
apt-get install haproxy


vi /etc/haproxy/haproxy.cfg

## content

global
  ulimit-n 51200
  maxconn 1024
  daemon

defaults
  log global
  mode tcp
  option dontlognull
  timeout connect 1000
  timeout client 150000
  timeout server 150000

listen tcp-in
  bind *:10800
  server server1 vps1_ip_address:port maxconn 500
  server server2 vps2_ip_address:port maxconn 500

这样就可以service haproxy restart了, done!

只要这两台机器的密码相同,加密方式相同。

直接连接这台机器就好了。

真是越来越费劲了。

打赏

Leave a comment

您的电子邮箱地址不会被公开。 必填项已用*标注