乐云主机笔记

  • 首页
  • 主机优惠
  • 学习记录
  • 新手教程
  • 自用主机
  • 资源下载
  • 网赚项目
  • 其他
  • pingtest

  1. 首页
  2. 新手教程
  3. 正文

pr小鸡锐速优化加速翻倍设置方法

2019年11月16日 1473点热度 0人点赞 0条评论



先将系统dd为 debian 7
bash <(wget --no-check-certificate -qO- \'https://moeclub.org/attachment/LinuxShell/InstallNET.sh\') -d 7 -v 64 -a -p 你的密码

下面修改配置优化!

1.增加系统文件描述符的最大限数
编辑文件 limits.conf
vi /etc/security/limits.conf
最后新增两行添加命令:

* soft nofile 51200
* hard nofile 51200

如发现limits.conf文件内容已经有,请修改为上。

编辑文件 profile

vi /etc/profile

最后新增一行添加命令:

ulimit -SHn 51200

修改后重启,检查是否生效命令:ulimit -n

2.调整内核参数
修改配置文件sysctl.conf

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

修改后执行命令:sysctl -p 使配置生效。

安装锐速
bash <(wget --no-check-certificate -qO- https://github.com/MoeClub/lotServer/raw/master/Install.sh) install

修改锐速配置 vi /appex/etc/config

acc="1"
advacc="1"
advinacc="1"
maxmode="1"
initialCwndWan="62"
l2wQLimit="1024 8192"
w2lQLimit="1024 8192"
shaperEnable="0"
smBurstMS="20"
engineNum="1"
shortRttMS="70"
修改完成,最后重启锐速!

使用方法:
启动命令 /appex/bin/lotServer.sh start
停止加速 /appex/bin/lotServer.sh stop
状态查询 /appex/bin/lotServer.sh status
重新启动 /appex/bin/lotServer.sh restart

标签: 暂无
最后更新:2019年11月16日

letvps

这个人很懒,什么都没留下

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

分类
  • 主机优惠
  • 其他
  • 域名优惠
  • 学习记录
  • 新手教程
  • 网赚项目
  • 脚本源码
  • 自用主机
  • 资源下载
书签
  • AdvinServers.com
  • 猫云云计算

COPYRIGHT © 2021 Letcloud.cn. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

粤ICP备15031609号-3