惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
C
CERT Recently Published Vulnerability Notes
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
Security Latest
Security Latest
P
Privacy International News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
AI
AI
Cisco Talos Blog
Cisco Talos Blog
K
Kaspersky official blog
S
Secure Thoughts
PCI Perspectives
PCI Perspectives
Simon Willison's Weblog
Simon Willison's Weblog
D
DataBreaches.Net
GbyAI
GbyAI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
罗磊的独立博客
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
V
V2EX
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tenable Blog
T
Threat Research - Cisco Blogs
T
Troy Hunt's Blog
V2EX - 技术
V2EX - 技术
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
L
Lohrmann on Cybersecurity
F
Full Disclosure
H
Help Net Security
博客园 - Franky
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
Engineering at Meta
Engineering at Meta
A
Arctic Wolf
O
OpenAI News
S
Securelist

Rat's Blog - SS

SSTap:可以用55R来进行海外游戏加速的工具 - Rat's Blog
Haproxy一键安装脚本,可转发端口改善服务器的网络状况 - Rat's Blog
博主: Rat's · 2016-07-08 · via Rat's Blog - SS
  •  发布时间:
  •  20510 次浏览
  •   暂无评论
  •  834 字数
  • 分类: 主机教程
  1.  首页
  2. 正文  
  3. 分享到:

说明:一般用海外服务器的都会遇到线路爆炸,网络不好的情况,这时候连接SSH或者使用55R的时候,会出现连接不上或者速度变慢的问题,为了改善这种状况,我们可以使用haproxy转发端口进行中转加速。

假设你的本地电脑为Ahaproxy服务器为B,需要转发的服务器为CA当然可以直接去连C,但效果可能不会很理想。如果B是一个对CA连接效果都好的服务器。那么A连接C就等于A连接B,通过B连接C,这样一来,虽然成本有所上升,但却能明显改善网络带宽情况。

安装

系统支持:CentOSDebianUbuntu

使用root登录做中转的那台服务器,执行下面的命令:

wget --no-check-certificate https://www.moerats.com/usr/down/haproxy.sh && bash haproxy.sh

然后会要求你依次输入起始端口、结束端口,需要中专的服务器IP

卸载方法:
DebianUbuntu系统

apt-get -y remove haproxy

CentOS系统

yum -y remove haproxy

然后删掉haproxy的配置文件目录

rm -rf /etc/haproxy

使用命令:
启动:/etc/init.d/haproxy start
停止:/etc/init.d/haproxy stop
重启:/etc/init.d/haproxy restart
状态:/etc/init.d/haproxy status

脚本来源:https://www.gaomingsong.com/480.html


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/132/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。

Vultr新用户注册送100美元/16个机房按小时计费,支持支付宝,【点击查看】。