Profile

Cover photo
Wanted Wine
31 followers|240,072 views
AboutPostsPhotosYouTube

Stream

Wanted Wine

Shared publicly  - 
 
難逃一習
 ·  Translate
1
1
Add a comment...

Wanted Wine

( ゜- ゜)つロ乾杯  - 
 
本质
 ·  Translate
 
段子
 ·  Translate
View original post
1
Add a comment...

Wanted Wine

其他类闲聊瞎扯区  - 
 
any本质骑士?
 ·  Translate
 
段子
 ·  Translate
View original post
1
Add a comment...

Wanted Wine

Android  - 
 
能分一下板块吗 水贴讨论教程什么的 (滑稽
 ·  Translate
3
Rin Hoshizora's profile photoWanted Wine's profile photo
2 comments
 
+Hsz Rin (阴险
 ·  Translate
Add a comment...

Wanted Wine

Android  - 
 
 
難逃一習
 ·  Translate
View original post
1
Add a comment...

Wanted Wine

Android  - 
 
 
段子
 ·  Translate
View original post
1
Add a comment...

Wanted Wine

欢乐恶搞  - 
 
嘻嘻 
 ·  Translate
 
段子
 ·  Translate
View original post
1
Add a comment...

Wanted Wine

Shared publicly  - 
 
段子
 ·  Translate
1
1
Add a comment...

Wanted Wine

技术分享讨论、问题咨询专区  - 
 
给centos下安装锐速报-bash: wget: command not found的初学者
sudo yum -y install wget
 ·  Translate
3
1
雷罗's profile photo
雷罗
 
安装wget解决问题~建议直接yum install -y wget curl git
 ·  Translate
Add a comment...

Wanted Wine

Shared publicly  - 
 
 
也是网络上的教程,这里整理下:
vps是  do + centos 6.5 + 锐速,端口是 443

以下内容仅限与 DO家 VPS

优化步骤:
vi /etc/sysctl.conf
然后加入以下内容:
fs.file-max = 51200
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.core.rmem_default = 65536
net.core.wmem_default = 65536
net.core.netdev_max_backlog = 4096
net.core.somaxconn = 4096

net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 0
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.ip_local_port_range = 10000 65000
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_rmem = 4096 87380 67108864
net.ipv4.tcp_wmem = 4096 65536 67108864
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_congestion_control = hybla
---------华丽的分割线 ----------

接着光标上移找到 Diaital Ocean Recommended Settings (我这边有四个。。可以自己再找找,文字前#号代表注释),注释后内容如下:
# Digital Ocean Recommended Settings:
#net.core.wmem_max=12582912
#net.core.rmem_max=12582912
#net.ipv4.tcp_rmem= 10240 87380 12582912
#net.ipv4.tcp_wmem= 10240 87380 12582912

紧接着再找到 net.bridge.bridge-nf-call-ip6tables(不注释掉,此处会报错),按上述方法注释掉,效果如下:
#net.bridge.bridge-nf-call-ip6tables
#net.bridge.bridge-nf-call-iptables
#net.bridge.bridge-nf-call-arptables


按esc键退出编辑,然后输入:wq 保存。
接着命令行输入(用于开启hybla):
/sbin/modprobe tcp_hybla

最后
sysctl -p
大功告成。


参考优化网址如下:
http://www.40do.com/archives/7411.html
http://www.ilucong.net/lulu/shadowsocks-tcp.html
 ·  Translate
31 comments on original post
1
Add a comment...