one piece

centos安装haproxy中转矿池

有时候连国外矿池挖币 丢包率和拒绝率比较高
可以试试用haproxy中转
Centos安装haproxy

yum install haproxy
yum install nano

然后开启:
# sysctl -w net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1
接着修改配置
nano /etc/haproxy/haproxy.cfg
global
ulimit-n 51200
defaults
log global
mode tcp
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000

##################################################################
#neoscrypt - zpool
frontend in1
bind *:4233
default_backend out1
backend out1
server server1 neoscrypt.mine.zpool.ca:4233 maxconn 20480

#equihash - zpool
frontend in2
bind *:2142
default_backend out2
backend out2
server server1 equihash.mine.zpool.ca:2142 maxconn 20480

#blke2s - zpool
frontend in3
bind *:5766
default_backend out3
backend out3
server server1 blake2s.mine.zpool.ca:5766 maxconn 20480

执行
service haproxy restart
{start|stop|reload|restart|status}

Created By: sb123

Form Page: centos安装haproxy中转矿池


Comments are closed.