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

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
WordPress大学
WordPress大学
小众软件
小众软件
Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
A
About on SuperTechFans
月光博客
月光博客
F
Fortinet All Blogs
宝玉的分享
宝玉的分享
Microsoft Security Blog
Microsoft Security Blog
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
V2EX
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
N
Netflix TechBlog - Medium
Jina AI
Jina AI
博客园 - 聂微东
Schneier on Security
Schneier on Security
云风的 BLOG
云风的 BLOG
博客园 - 司徒正美
N
News | PayPal Newsroom
PCI Perspectives
PCI Perspectives
Last Week in AI
Last Week in AI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Proofpoint News Feed
Hacker News: Ask HN
Hacker News: Ask HN
B
Blog
aimingoo的专栏
aimingoo的专栏
P
Privacy International News Feed
Martin Fowler
Martin Fowler
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
NISL@THU
NISL@THU
Know Your Adversary
Know Your Adversary
C
Cybersecurity and Infrastructure Security Agency CISA
博客园 - 叶小钗
N
News and Events Feed by Topic
T
The Exploit Database - CXSecurity.com
Stack Overflow Blog
Stack Overflow Blog
S
Security @ Cisco Blogs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
V
Vulnerabilities – Threatpost
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threatpost
IT之家
IT之家
B
Blog RSS Feed

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