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

推荐订阅源

L
LINUX DO - 热门话题
Stack Overflow Blog
Stack Overflow Blog
B
Blog
WordPress大学
WordPress大学
Project Zero
Project Zero
P
Palo Alto Networks Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 司徒正美
有赞技术团队
有赞技术团队
S
SegmentFault 最新的问题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
小众软件
小众软件
T
Tailwind CSS Blog
Forbes - Security
Forbes - Security
F
Full Disclosure
SecWiki News
SecWiki News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hacker News: Ask HN
Hacker News: Ask HN
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
F
Fortinet All Blogs
Cisco Talos Blog
Cisco Talos Blog
G
Google Developers Blog
J
Java Code Geeks
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recorded Future
Recorded Future
O
OpenAI News
Spread Privacy
Spread Privacy
MongoDB | Blog
MongoDB | Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
C
Cybersecurity and Infrastructure Security Agency CISA
S
Securelist
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
IT之家
IT之家
U
Unit 42
腾讯CDC
S
Security Affairs
C
Cisco Blogs
Schneier on Security
Schneier on Security
The Last Watchdog
The Last Watchdog
B
Blog RSS Feed
宝玉的分享
宝玉的分享
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security @ Cisco Blogs
Cyberwarzone
Cyberwarzone
T
The Blog of Author Tim Ferriss

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个机房按小时计费,支持支付宝,【点击查看】。