先将系统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 |
文章评论