1.将 Linux 内核升级到 3.5 或以上
2.编辑文件 limits.conf
vi /etc/security/limits.conf
3.新加入两行:
* soft nofile 51200 * hard nofile 51200
4.启动之前,设置以下参数
ulimit -n 51200
5.调整内核参数 vi /etc/sysctl.conf
fs.file-max = 51200 net.core.rmem_max = 67108864 net.core.wmem_max = 67108864 net.core.netdev_max_backlog = 250000 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 = 8192 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 使配置生效
6.安装锐速
20M版本永久免费
7.修改锐速的3个参数 vi /serverspeeder/etc/config
rsc="1" #RSC网卡驱动模式 advinacc="1" #流量方向加速 maxmode="1" #最大传输模式 service serverSpeeder restart
然后感受下速度吧,是否增快了不少?
原文:https://www.andy1999.com
感谢 clowwindy,带给我们一款如此好用的软件。