[转载]阿里云香港轻量服务器加上BBR+加速跑满带宽

in 技术 with 10 comments

本文转载自https://blog.xuelg.com/teach/aly-bbr.html

前言

最近买了台阿里的香港轻量服务器,1U1G30M(共享)。虽然已经知道是非直连大陆的,但延迟还可以接受,至于速度开始跑满4MB/s带宽的后面大概只有500KB/s左右,尤其高峰期很不理想。网上找了找服务器加速教程,跟着走了一遍。 速度直接飞起,高峰期秒开、跑满。电信和联通快,移动稍慢,但是比原来快了很多很多。

教程

首先卸载阿里云安骑士

卸载安骑士

wget http://update.aegis.aliyun.com/download/uninstall.sh 
chmod +x uninstall.sh 
./uninstall.sh 
wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh 
chmod +x quartz_uninstall.sh 
./quartz_uninstall.sh

删除残留文件

pkill aliyun-service
rm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service
rm -rf /usr/local/aegis*

屏蔽安骑士IP

iptables -I INPUT -s 140.205.201.0/28 -j DROP 
iptables -I INPUT -s 140.205.201.16/29 -j DROP 
iptables -I INPUT -s 140.205.201.32/28 -j DROP 
iptables -I INPUT -s 140.205.225.192/29 -j DROP 
iptables -I INPUT -s 140.205.225.200/30 -j DROP 
iptables -I INPUT -s 140.205.225.184/29 -j DROP 
iptables -I INPUT -s 140.205.225.183/32 -j DROP 
iptables -I INPUT -s 140.205.225.206/32 -j DROP 
iptables -I INPUT -s 140.205.225.205/32 -j DROP 
iptables -I INPUT -s 140.205.225.195/32 -j DROP 
iptables -I INPUT -s 140.205.225.204/32 -j DROP

如果是宝塔面板可以如图设置

140.205.201.0/28
140.205.201.16/29
140.205.201.32/28
140.205.225.192/29
140.205.225.200/30
140.205.225.184/29
140.205.225.183/32
140.205.225.206/32
140.205.225.205/32
140.205.225.195/32
140.205.225.204/32

3151307687.jpg

安装 BBR+

这里安装 BBR plus 版本,Plus 版本经过修改后会具有侵略性,能更好的抢占带宽,提高速度。

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" 
chmod +x tcp.sh 
./tcp.sh

这里我们先选 2 安装内核,成功后重启

重启后再次运行 ./tcp.sh 命令,然后选 7 完成 BBR + 的安装,此时提速明显!
1713590204.jpg

小缺点

移动有时候可能会炸,不过问题不大,整体直接飞起!
有时候重启会掉,需要运行 ./tcp.sh 命令,然后选 7 启动

Responses
  1. 确实少有, 这么生动的旅行故事。太棒了。 俄羅斯 万分感谢 美丽的地方描写。真正 令人愉快。

    Reply
  2. Вы до начала работ увидите, как будет выглядеть ваш участок – подготовим подробный проект и согласуем его с вами https://зеленая-жизнь.com/

    Работаем по графику https://зеленая-жизнь.com/sad

    Выбирая нашу компанию, вы выбираете красоту своего участка https://зеленая-жизнь.com/buzaevo
    Все, что потребуется от вас, - описать свои пожелания, а мы сможем реализовать их наилучшим образом https://зеленая-жизнь.com/sad
    Сделайте шаг навстречу саду вашей мечты вместе с ландшафтной студией «Сад Фантазий»!
    Реализация проекта https://зеленая-жизнь.com/solnechnogorsk

    Коммерческое озеленение под ключ https://зеленая-жизнь.com/contacts

    У вас есть идея? Мы поможем вам воплотить ее в жизнь https://зеленая-жизнь.com/uslugi1
    Закажите проект ландшафтного благоустройства прямо сейчас и начните путешествие к своему идеальному зеленому уголку!

    Reply
  3. ?Alcemos nuestros brindis por cada virtuoso de la tactica !
    Hoy en dГ­a el casinomovilespana.com se ha convertido en una alternativa muy valorada por su facilidad de uso. la experiencia mГіvil se ha vuelto imprescindible si todo funciona sin errores. Por eso muchos prefieren este formato para disfrutar del juego de forma natural y sin estrГ©s.
    El https://casinomovilespana.com/ es una opciГіn cГіmoda para quienes disfrutan jugar en cualquier momento del dГ­a desde su telГ©fono. Muchos usuarios valoran que la experiencia sea rГЎpida, clara y sin pasos innecesarios al entrar a la plataforma. Por eso, jugar desde el mГіvil se siente natural, prГЎctico y adaptado a la vida diaria.
    Las ventajas de juegos de casino movil para jugadores en EspaГ±a - http://casinomovilespana.com/
    ?Que la suerte avance contigo con experiencias extraordinarias rendimientos destacados !

    Reply
  4. Тренировки на автосимуляторах https://автошкола.рф/korolev

    37 000 руб https://автошкола.рф/korolev

    Получить права с нами просто!
    +7 (499) 480-69-60 https://автошкола.рф/prices

    Видеоуроки для обучения в любое время https://автошкола.рф/specialsignals

    Обучение вождению на АКПП и МКПП https://автошкола.рф/dolgoprudniy

    Reply
  5. Наружное освещение играет огромную роль в ландшафтном дизайне территории https://xn----8sbbqwjb8ce.xn--p1ai/
    Всего несколько правильно выбранных и установленных фонарей, и сад приобретёт совсем иной вид в тёмное время суток https://xn----8sbbqwjb8ce.xn--p1ai/

    При установке светильников уличного освещения над контактной сетью трамвая высота подвеса светильников должна быть не менее 8 м от уровня головки рельса, при расположении светильников над контактной сетью троллейбуса - не менее 9 м от уровня проезжей части https://xn----8sbbqwjb8ce.xn--p1ai/
    Расстояния по вертикали от проводов линий уличного освещения до поперечин контактной сети при наиболее неблагоприятных условиях должны быть не менее 0,5 м https://xn----8sbbqwjb8ce.xn--p1ai/

    Представляют собой газоразрядные лампы низкого давления https://xn----8sbbqwjb8ce.xn--p1ai/
    Их принцип работы заключается в преобразовании ультрафиолетового излучения от газового разряда в видимый свет с помощью люминофорного покрытия https://xn----8sbbqwjb8ce.xn--p1ai/
    Получается мягкое и равномерное освещение https://xn----8sbbqwjb8ce.xn--p1ai/
    Лампы имеют длительный срок службы и доступную цену https://xn----8sbbqwjb8ce.xn--p1ai/

    Фонари для света подбираются в зависимости от назначения https://xn----8sbbqwjb8ce.xn--p1ai/
    Для декоративной подсветки фасада дома, бассейна, пруда и других подобных мест используют источники с рассеивающим светом https://xn----8sbbqwjb8ce.xn--p1ai/

    2 https://xn----8sbbqwjb8ce.xn--p1ai/
    Необходимо разрезать ленты брони и присоединить их к шине PE, обеспечив надёжное соединение https://xn----8sbbqwjb8ce.xn--p1ai/
    Просверлите отверстие в ленте брони и выполните болтовое соединение, такой способ является трудоёмким, но наиболее надёжным https://xn----8sbbqwjb8ce.xn--p1ai/

    Индивидуальное освещение https://xn----8sbbqwjb8ce.xn--p1ai/
    Это составление схемы размещения на основе проекта участка https://xn----8sbbqwjb8ce.xn--p1ai/
    Здесь используются небольшие фонари вдоль садовых дорожек, лампы на крыльце дома и возле парадного въезда с улицы https://xn----8sbbqwjb8ce.xn--p1ai/
    Наиболее распространённый вариант https://xn----8sbbqwjb8ce.xn--p1ai/

    Reply
  6. Defense representation law in Ohio is often complex, particularly when you are facing serious allegations. It is vital to know your legal protections and the criminal justice system.

    A criminal charge can bring lasting penalties, including fines, probation, or incarceration. In Ohio, penalties often depend on the nature of the offense and your prior record.

    Working with an skilled criminal defense attorney can allow you to challenge evidence and seek the best possible outcome.

    https://rogerbouchardlaw.substack.com/p/will-you-lose-your-license-after

    Reply
  7. Hello supporters of harmonious living !
    If you require additional filtration capabilities, look for the best purifier for smoke equipped with UV-C light. best air purifier for cigarette smoke. This technology further enhances its ability to neutralize airborne pathogens, providing comprehensive safety. Such advanced features make it a worthwhile investment for maintaining a clean atmosphere.
    Consumers should also pay attention to maintenance costs associated with their airpurifierforcigarettesmokewhat. Regular filter replacement is necessary to ensure continued efficiency and effectiveness. Knowing about the costs involved can help users make informed decisions and prepare for ongoing maintenance.
    Best Air Purifier to Remove Cigarette Smoke: Customer Favorites - https://airpurifierforcigarettesmoke.vercel.app/#
    May you enjoy remarkable immaculate atmosphere !

    Reply
  8. Hello protectors of untouched airflow !
    The noise level of the best air purifier for smoke and pets can greatly affect your comfort at home. . Many users prefer models that operate quietly while efficiently filtering the air. Look for options with noise-reduction technology to ensure a tranquil living environment.
    The best air purifiers for smokers serve an invaluable role in reducing respiratory problems associated with smoke inhalation. These devices allow individuals to enjoy their leisure time without the concern of harmful smoke exposure. Ultimately, investing in one will empower everyone in the household to breathe easier.
    Enhance Home Comfort with an Air Purifier for Cigarette Smoke - http://airpurifierforcigarettesmoke.vercel.app/#
    May you enjoy remarkable renewed spaces !

    Reply
  9. Hello shapers of tranquil spaces !
    The harmful effects of smoking extend well beyond the smoker, impacting everyone in the vicinity. Using an air purifier can protect against secondhand smoke and improve health outcomes for your family. Explore options available at https://airpurifierforcigarettesmoke. vercel. . app/.
    The best air purifier to remove smoke can also contribute to reducing harmful volatile organic compounds (VOCs). Many modern air purifiers come with specialized filters designed to eliminate these toxic gases. Ensuring your air is clean can create a safer environment for your family.
    Best Smoke Air Purifiers: Top Picks for Urban Dwellers - http://airpurifierforcigarettesmoke.vercel.app/#
    May you enjoy remarkable breathtaking purity !

    Reply
  10. Hello protectors of untouched airflow !
    Many air purifiers for smoke come with smart features, like air quality sensors and app connectivity. best air purifier for cigarette smoke. These innovations allow users to monitor air quality in real-time and receive alerts. Such technology enhances usability and offers peace of mind during smoke events.
    The effectiveness of the best air purifiers for smokers is often backed by studies and consumer reviews. Several models have undergone rigorous testing to ensure they meet high standards of smoke removal. Considering verified reviews can help you choose an air purifier that truly delivers on its promises.
    how the best air purifier for smoke can enhance your health - http://airpurifierforcigarettesmoke.vercel.app/
    May you enjoy remarkable unparalleled clarity !

    Reply