Introduction to the steps for installing net speeder on Debian VPS

Source: Internet
Author: User
Tags set time vps


Tennfy before the Linode Debian system. The article introduces the sharp speed, the effect of sharp speed is really very good, can effectively enhance the local to the VPS connection speed. However, the sharp speed in the KVM or Xen VPS Chinese can be used, for many OpenVZ VPS users is somewhat regrettable. This article is to introduce the sharp speed in the OPENVZ VPS environment Alternative –net-speeder.

Net-speeder Introduction

Net-speeder is a TCP accelerator similar to the sharp speed and has the advantage of not having the sharp speed: it can be used in OpenVZ virtualization VPS. However, the relative Yu Rui speed can be lost by the evaluation and prediction of packet loss, accurate estimation of path bandwidth and other means of intelligent contract, Net-speeder adopted a more simple and rough way, forced double contract. Such practices have pros and cons, the advantages of high delay in the unstable link (such as telecommunications to the United States VPS) can effectively reduce the rate of loss, but the double contract means that the cost of double flow, for the limited VPS traffic needs to be cautious.

Net-speeder GitHub Project Address: Https://github.com/snooda/net-speeder

Installation and use of Net-speeder

Installation of Net-speeder

Download the Net-speeder installation script after logging into the VPS

wget--no-check-certificate Https://raw.githubusercontent.com/tennfy/debian_netspeeder_tennfy/master/debian_ netspeeder_tennfy.sh

Execute the Script

chmod a+x debian_netspeeder_tennfy.sh
Bash debian_netspeeder_tennfy.sh

The use of Net-speeder

When the script is installed, the Net-speeder is run automatically. You can view the Net-speeder run status and stop Net-speeder by following these commands.

To see if Net-speeder is running

PS Aux|grep net_speeder|grep-v grep

Stop Net-speeder

Killall Net_speeder

Start Net-speeder (OPENVZ environment)

Nohup/root/net_speeder venet0 "IP" >/dev/null 2>&1 &

Set Net-speeder timer switch

Net-speeder is actually quite controversial, the double contract will lead to network congestion, a bit of a sense of beggar-thy-neighbour. As a result, TENNFY gives a tradeoff between opening net-speeder at the peak of the night and turning off the idle time.

1. Set time zone

Since the US VPS time zone is inconsistent with China, it is necessary to set the time zone for the VPS.
Execute the following command

echo "Asia/shanghai" >/etc/timezone

Enter the date command to see if the time displayed on the VPS is the same as local.

2. Set Net-speeder timing Switch

We set the 19-point open, 24-point off. Execute the following command:

Echo ' 0 * * * * root nohup/root/net_speeder venet0 "IP" >/dev/null 2>&1 & ' >>/etc/crontab
echo "0 0 * * * root killall Net_speeder" >>/etc/crontab
/etc/init.d/cron restart

Net-speeder Matters needing attention

The following situations are not suitable for use with Net-speeder:
1, the server traffic is small, because use Net-speeder will consume double flow.
2, mainly provide Web pages, pictures and other small file access. Net-speeder for downloading large files, proxy access to video sites and other effects are better, and small file acceleration effect is not obvious.
3, need to use pptpd and so on does not support the double contract the network software. Net-speeder can cause these software to not be used properly.
4, if the line itself is very good, there is no large delay, the use of net-speeder effect will backfire.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.