Debian/Ubuntu/CentOS 上安装 net-speeder 并优化
wget --no-check-certificate https://gist.github.com/LazyZhu/dc3f2f84c336a08fd6a5/raw/d8aa4bcf955409e28a262ccf52921a65fe49da99/net_speeder_lazyinstall.sh
sh net_speeder_lazyinstall.sh
nohup /usr/local/net_speeder/net_speeder venet0 "你VPS的主IP地址" >/dev/null 2>&1 &
killall net_speeder
wget --no-check-certificate https://raw.githubusercontent.com/tennfy/debian_netspeeder_tennfy/master/debian_netspeeder_tennfy.sh
chmod a+x debian_netspeeder_tennfy.sh
bash debian_netspeeder_tennfy.sh
查看 net-speeder 是否运行
ps aux|grep net_speeder|grep -v grep
停止net-speeder
killall net_speeder
启动net-speeder(OPENVZ环境)
nohup /root/net_speeder venet0 "ip" >/dev/null 2>&1 &
1. 安装运行及编译的依赖库
apt-get install libnet1;apt-get install libpcap0.8;apt-get install libnet1-dev;apt-get install libpcap0.8-dev
2. 下载源码到 服务器
cd /var;wget https://github.com/snooda/net-speeder/raw/master/net_speeder.c;wget https://github.com/snooda/net-speeder/raw/master/build.s
3. 编译
chmod +x build.sh;./build.sh -DCOOKED
4. 运行并加入开机启动
nohup /var/net_speeder eth0 "ip";echo "nohup /var/net_speeder eth0 "ip" >/dev/null 2>&1 &" >> /etc/rc.local
echo "Asia/Shanghai" >/etc/timezone
2、设置定时开关
echo '0 13 * * * root nohup /root/net_speeder venet0 "ip" >/dev/null 2>&1 &' >>/etc/crontab
echo "0 2 * * * root killall net_speeder" >>/etc/crontab
/etc/init.d/cron restart
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。