全球主机交流论坛

标题: bbr 原版/魔改/plus+锐速 四合一脚本 [打印本页]

作者: cx9208    时间: 2018-12-24 19:09
标题: bbr 原版/魔改/plus+锐速 四合一脚本
本帖最后由 cx9208 于 2019-3-10 18:09 编辑

在Chikage的脚本基础上加了bbrplus的内核切换与加速安装

项目:https://github.com/cx9208/Linux-NetSpeed
bbrplus介绍见:https://www.91ai.net/thread-507165-1-1.html

在vultr上Centos 7, Debian 8/9, Ubuntu 16/18测试通过,不支持ovz
(bbrplus的debian/ubuntu内核已经弄好了,先加到这里了,我那个原来的项目还没加,毕竟这个很好用)


安装:
  1. wget "https://github.com/cx9208/Linux-NetSpeed/raw/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
复制代码


提示证书错误的话
apt-get -y install ca-certificates
yum -y install ca-certificates

1. 先在[1 - 3]切换内核(第一次显示为bbr内核也要切换一遍),重启

出现这个选no


2. 重启后不用再下载脚本,直接 ./tcp.sh ,在[4 - 8]中选你要开的加速

        "1. 安装 BBR/BBR魔改版内核"        对应4,5,6(原版,魔改,暴力魔改)
        "2. 安装 BBRplus版内核 "                对应7(plus)
        "3. 安装 Lotserver(锐速)内核"        对应8(锐速)

3. 开启后再 ./tcp.sh  , 显示开启成功则启动成功,你也可以自己手动确认

现在你可以自由的切换你想要的加速,直到你不想折腾为止~
作者: LoNEFA    时间: 2018-12-24 19:10
谢谢大佬,收藏了
作者: ibmall    时间: 2018-12-24 19:11
本帖最后由 ibmall 于 2018-12-24 19:35 编辑

支持Ubuntu了?


刚刚测试了一下,Ubuntu 16 可用,具体效果没有之前的数据对比,
移动宽带  可以到 4W,好像平时也可以。
作者: 每次醒来    时间: 2018-12-24 19:11
好像撞贴  https://www.91ai.net/thread-425693-1-1.html
作者: 回味依旧    时间: 2018-12-24 19:12
啥时候支持 ovz 啊 此处 @男晴朗
作者: hardwar    时间: 2018-12-24 19:13
顶顶大佬
作者: cx9208    时间: 2018-12-24 19:13
ibmall 发表于 2018-12-24 19:11
支持Ubuntu了?

支持了,但没测效果
作者: gyhl    时间: 2018-12-24 19:13
魔改版支持ovz吗
作者: wolfewong    时间: 2018-12-24 19:15
支持楼主,感谢
作者: luker    时间: 2018-12-24 19:19
感谢楼主的分享!!赞
作者: Twitch    时间: 2018-12-24 19:20
感谢大佬
作者: ibmall    时间: 2018-12-24 19:20
cx9208 发表于 2018-12-24 19:13
支持了,但没测效果

那到底是支持呢?还是不支持呢?
作者: bland_cn    时间: 2018-12-24 19:20
顶 大佬
作者: 流河旱树    时间: 2018-12-24 19:21
牛逼 谢谢分享
作者: csp85123    时间: 2018-12-24 19:21
建议提交到我原本的github项目我会进行合并,并在readme.md 著名你的修改
作者: cx9208    时间: 2018-12-24 19:21
ibmall 发表于 2018-12-24 19:20
那到底是支持呢?还是不支持呢?

支持的,我中午测过debian9是有效果的,ubuntu和debian内核是通用的
作者: ibmall    时间: 2018-12-24 19:22
cx9208 发表于 2018-12-24 19:21
支持的,我中午测过debian9是有效果的,ubuntu和debian内核是通用的

好吧,我试试看。。。
作者: csp85123    时间: 2018-12-24 19:22
https://github.com/chiakge/Linux-NetSpeed
作者: cx9208    时间: 2018-12-24 19:23
csp85123 发表于 2018-12-24 19:21
建议提交到我原本的github项目我会进行合并,并在readme.md 著名你的修改

好的,我刚用github,晚上研究下怎么弄
作者: Developer_HZH    时间: 2018-12-24 19:23
赶上前排了
作者: sevensu    时间: 2018-12-24 19:24
这个不错啊
作者: Shil    时间: 2018-12-24 19:25
厉害,支持一下。

能支持ovz吗?
作者: 一衰烟雨cat333    时间: 2018-12-24 19:26
支持大佬
作者: 左手写爱    时间: 2018-12-24 19:26
感谢大佬分享  OVZ能不能用?
作者: csp85123    时间: 2018-12-24 19:28
cx9208 发表于 2018-12-24 19:23
好的,我刚用github,晚上研究下怎么弄

https://github.com/chiakge/Linux-NetSpeed/pulls
作者: 三不    时间: 2018-12-24 19:33
这个可以有
作者: xunn    时间: 2018-12-24 19:38
厉害,支持。

ovz能用?
作者: wifitry    时间: 2018-12-24 19:40
收藏了,多谢了
作者: Winnie    时间: 2018-12-24 19:40
提示: 作者被禁止或删除 内容自动屏蔽
作者: csp85123    时间: 2018-12-24 19:47
Winnie 发表于 2018-12-24 19:40
10 系统配置优化具体是优化啥。。。

优化并发承载量
作者: guonning2000    时间: 2018-12-24 19:54
收藏了,感谢分享
作者: imswing    时间: 2018-12-24 19:56
nice
作者: Winnie    时间: 2018-12-24 19:57
提示: 作者被禁止或删除 内容自动屏蔽
作者: ctr54188    时间: 2018-12-24 20:04
用debian试试

作者: moowee    时间: 2018-12-24 20:11
666 内核也更新了~
作者: wishost    时间: 2018-12-24 20:12
支持随意切换?
作者: zytlhc    时间: 2018-12-24 20:12
mark
作者: zhc670    时间: 2018-12-24 20:30
支持centos6?
其实这个用的多。
作者: cx9208    时间: 2018-12-24 20:31
zhc670 发表于 2018-12-24 20:30
支持centos6?
其实这个用的多。

6和7内核据说不通用,还没编译
作者: kougui    时间: 2018-12-24 20:35
收藏分享了,不错的好东西!
作者: 萌新    时间: 2018-12-24 20:37
萌新来给技术大佬点赞先!!
作者: vvx.cc    时间: 2018-12-24 20:42
楼主合并了不少啊
作者: koogg    时间: 2018-12-24 20:47
感谢分享 之前就是用的这个脚本,刚去更新了下,发现1.2.0了
作者: caifw    时间: 2018-12-24 20:49
make下
作者: forrgstr    时间: 2018-12-24 21:25
大佬威武
作者: thuzdp    时间: 2018-12-24 21:27
感谢分享啊好人
作者: rocky85    时间: 2018-12-24 21:33
感谢大佬,收下~~~~~~~~~~~~~
作者: Chappako    时间: 2018-12-24 21:50
大佬 大佬///
作者: RuyZui    时间: 2018-12-24 21:54
感谢分享!!
作者: lifetyper    时间: 2018-12-24 22:03
提示: 作者被禁止或删除 内容自动屏蔽
作者: ogrish    时间: 2018-12-24 22:09
提示: 作者被禁止或删除 内容自动屏蔽
作者: yanqing001    时间: 2018-12-24 22:12
debian anynode 上有问题,搞坏了,只好重装了,结果重装了换内核还有问题
作者: buzz    时间: 2018-12-24 22:12
建议不要用中文菜单
作者: 3到15个字符    时间: 2018-12-24 22:19
dalao能来一个32bit内核的吗,debian 7,THX。
作者: myseil    时间: 2018-12-24 22:37
收藏下备用吧!
作者: cx9208    时间: 2018-12-24 22:49
yanqing001 发表于 2018-12-24 22:12
debian anynode 上有问题,搞坏了,只好重装了,结果重装了换内核还有问题

用网络重装脚本装个debian试试看,anynode没测过
作者: moowee    时间: 2018-12-24 22:52
cx9208 发表于 2018-12-24 22:49
用网络重装脚本装个debian试试看,anynode没测过

小内存上centos7 x64 还是蛮吃力的
作者: qwerty    时间: 2018-12-24 23:19
moowee 发表于 2018-12-24 22:52
小内存上centos7 x64 还是蛮吃力的

支持大便好像
作者: server123    时间: 2018-12-24 23:25
留个脚印
作者: w5912460    时间: 2018-12-24 23:40
make
作者: panshihong1    时间: 2018-12-24 23:43
收藏那么多啊
作者: gusongdu1    时间: 2018-12-24 23:47
提示: 作者被禁止或删除 内容自动屏蔽
作者: oldchen    时间: 2018-12-25 08:12
本帖最后由 oldchen 于 2018-12-25 08:14 编辑

大佬,内核不支持 wireguard,检查安装命令 modprobe wireguard && lsmod | grep wireguard 提示 FATAL: Module wireguard not found in directory /lib/modules/4.14.90
作者: younglion    时间: 2018-12-25 08:23
大佬威武
作者: loveug    时间: 2018-12-25 08:25
大佬能不能改成低点的内核4.12之类的。wireguard不支持那么高的内核
作者: panxv303    时间: 2018-12-25 08:38
大佬啊
作者: greatly    时间: 2018-12-25 08:50
支持强贴
作者: alams    时间: 2018-12-25 09:02
看到新的bbr赶紧重装了一台小鸡试试效果。
作者: cx9208    时间: 2018-12-25 09:05
oldchen 发表于 2018-12-25 08:12
大佬,内核不支持 wireguard,检查安装命令 modprobe wireguard && lsmod | grep wireguard 提示 FATAL: Mo ...

这个可能是我没有编译进去,我抽个时间把两个内核重新编译一遍然后通知你
作者: cx9208    时间: 2018-12-25 09:11
oldchen 发表于 2018-12-25 08:12
大佬,内核不支持 wireguard,检查安装命令 modprobe wireguard && lsmod | grep wireguard 提示 FATAL: Mo ...

我又看了下好像不是这个原因,可能是因为我没提供linux-header导致的,你私聊下我你用什么系统,我发个header给你装后再试下
作者: sertt    时间: 2018-12-25 09:14
本帖最后由 sertt 于 2018-12-25 09:18 编辑

大佬,我的256小鸡,换完内核 开不开机了。提示提存不足。。只能重做系统吗?还能用这个bbr吗

作者: cx9208    时间: 2018-12-25 09:21
sertt 发表于 2018-12-25 09:14
大佬,我的256小鸡,换完内核 开不开机了。提示提存不足。。只能重做系统吗?还能用这个bbr吗
...

我在我256的cloudcone上是测试通过的,你可以试下用网络重装脚本装个debian9再试下
作者: jangqiande    时间: 2018-12-25 09:24
感觉楼主

作者: orz2    时间: 2018-12-25 09:24
《这就是大佬》
作者: sh3dowin    时间: 2018-12-25 09:26
千影大佬牛皮
作者: wcg928    时间: 2018-12-25 09:27
BBR和锐速能同时共存吗?
作者: kfen    时间: 2018-12-25 09:35
如果可能的话,希望楼主能捣鼓下32位的系统,比如debian7  32位 就无法使用~   



一些小内存的小鸡,还是只能32位的系统~
作者: wcg928    时间: 2018-12-25 09:37
请问各位大佬,这里要如何选择?

(, 下载次数: 2)

在线等..谢谢!
作者: wensnj    时间: 2018-12-25 09:38
wcg928 发表于 2018-12-25 09:37
请问各位大佬,这里要如何选择?

回车
作者: wcg928    时间: 2018-12-25 09:42
本帖最后由 wcg928 于 2018-12-25 09:43 编辑
wensnj 发表于 2018-12-25 09:38
回车


显示启动失败? 内存128的不能用吗?

(, 下载次数: 0)
作者: ts2018    时间: 2018-12-25 09:46
战略性mark一下吧
作者: cx9208    时间: 2018-12-25 09:57
wcg928 发表于 2018-12-25 09:42
显示启动失败? 内存128的不能用吗?

128就别用锐速了,锐速很占内存,256跑都容易掉
作者: wcg928    时间: 2018-12-25 10:10
cx9208 发表于 2018-12-25 09:57
128就别用锐速了,锐速很占内存,256跑都容易掉



作者: moowee    时间: 2018-12-25 10:13
loveug 发表于 2018-12-25 08:25
大佬能不能改成低点的内核4.12之类的。wireguard不支持那么高的内核

这是tcp加速,对wireguard这种走udp的无效。
作者: Rottyler    时间: 2018-12-25 10:14
mark
作者: 沉默是金    时间: 2018-12-25 10:28
感谢分享!
作者: XiongX    时间: 2018-12-25 10:33
谢谢分享!收藏了
作者: dinglina888    时间: 2018-12-25 10:34
谢谢楼主,收藏了
作者: idmi    时间: 2018-12-25 11:55
这个不错啊
作者: yanqing001    时间: 2018-12-25 14:04
这是 bug 吗?
anynode

----------------------------------------

Selecting previously unselected package linux-image-4.14.90.
(Reading database ... 26296 files and directories currently installed.)
Preparing to unpack linux-image-4.14.90.deb ...
Done.
Unpacking linux-image-4.14.90 (4.14.90-10.00.Custom) ...
Setting up linux-image-4.14.90 (4.14.90-10.00.Custom) ...

Hmm. There is a symbolic link /lib/modules/4.14.90/build
However, I can not read it: No such file or directory
Therefore, I am deleting /lib/modules/4.14.90/build


Hmm. The package shipped with a symbolic link /lib/modules/4.14.90/source
However, I can not read the target: No such file or directory
Therefore, I am deleting /lib/modules/4.14.90/source

Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.14.90 /boot/vmlinuz-4.14.90
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.14.90 /boot/vmlinuz-4.14.90
update-initramfs: Generating /boot/initrd.img-4.14.90
W: initramfs-tools configuration sets RESUME=UUID=8564e379-d91c-49e5-b290-0f18aa576565
W: but no matching swap device is available.
I: The initramfs will attempt to resume from /dev/vda2
I: (UUID=0aa09bd3-75f2-47c4-afdf-bb5b88ddd8f2)
I: Set the RESUME variable to override this.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.14.90 /boot/vmlinuz-4.14.90
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.14.90
Found initrd image: /boot/initrd.img-4.14.90
Found linux image: /boot/vmlinuz-4.9.0-4-amd64
Found initrd image: /boot/initrd.img-4.9.0-4-amd64
Killed

作者: yanqing001    时间: 2018-12-25 14:07
yanqing001 发表于 2018-12-25 14:04
这是 bug 吗?
anynode

Ctrl + c
然后
---------------------------
Killed
^Cdpkg: error processing package linux-image-4.14.90 (--install):
subprocess installed post-installation script was interrupted
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.14.90.postinst line 391.
Errors were encountered while processing:
linux-image-4.14.90
检测到 2 个其余内核,开始卸载...
开始卸载 linux-image-4.9.0-4-amd64 内核...
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  linux-image-4.9.0-4-amd64* linux-image-amd64*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 190 MB disk space will be freed.
(Reading database ... 30538 files and directories currently installed.)
Removing linux-image-amd64 (4.9+80+deb9u2) ...
Removing linux-image-4.9.0-4-amd64 (4.9.51-1) ...
W: Removing the running kernel
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.14.90
I: /initrd.img.old is now a symlink to boot/initrd.img-4.14.90
I: /vmlinuz is now a symlink to boot/vmlinuz-4.14.90
I: /initrd.img is now a symlink to boot/initrd.img-4.14.90
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.9.0-4-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.14.90
Found initrd image: /boot/initrd.img-4.14.90
done
Setting up linux-image-4.14.90 (4.14.90-10.00.Custom) ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.14.90 /boot/vmlinuz-4.14.90
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.14.90 /boot/vmlinuz-4.14.90
update-initramfs: Generating /boot/initrd.img-4.14.90
W: initramfs-tools configuration sets RESUME=UUID=8564e379-d91c-49e5-b290-0f18aa576565
W: but no matching swap device is available.
I: The initramfs will attempt to resume from /dev/vda2
I: (UUID=0aa09bd3-75f2-47c4-afdf-bb5b88ddd8f2)
I: Set the RESUME variable to override this.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.14.90 /boot/vmlinuz-4.14.90
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.14.90
Found initrd image: /boot/initrd.img-4.14.90
done
(Reading database ... 26306 files and directories currently installed.)
Purging configuration files for linux-image-4.9.0-4-amd64 (4.9.51-1) ...
W: APT had planned for dpkg to do more than it reported back (10 vs 14).
   Affected packages: linux-image-4.14.90:amd64
卸载 linux-image-4.9.0-4-amd64 内核卸载完成,继续...
开始卸载  内核...
Reading package lists... Done
Building dependency tree      
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
卸载  内核卸载完成,继续...
内核卸载完毕,继续...
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.14.90
Found initrd image: /boot/initrd.img-4.14.90
done
[注意] 重启VPS后,请重新运行脚本开启BBRplus
需要重启VPS后,才能开启BBRplus,是否现在重启 ? [Y/n] :
[信息] VPS 重启中...

作者: cx9208    时间: 2018-12-25 14:18
yanqing001 发表于 2018-12-25 14:04
这是 bug 吗?
anynode

看起来是内存不够,加点虚拟内存,网上有一键脚本
作者: 洋葱葱    时间: 2018-12-25 14:25
所以说那个博客就是大佬你的?
作者: wawa009    时间: 2018-12-25 14:29
谢谢,试试小鸡有没有用。
作者: highrise    时间: 2018-12-25 14:31
dalao 威武
作者: maypu    时间: 2018-12-25 14:37
战略收藏
作者: cx9208    时间: 2018-12-25 15:44
洋葱葱 发表于 2018-12-25 14:25
所以说那个博客就是大佬你的?

不是啊,我已经写了我只是编译了那个大佬博客上的代码
作者: ljxljx    时间: 2018-12-25 15:53
牛逼,感谢分享
作者: alams    时间: 2018-12-25 16:06
debian8 plus内核会越来越慢,其他人有类似情况吗。 VIRMACH的小鸡
作者: cooe    时间: 2018-12-25 16:08
mark一下,谢谢大佬!




欢迎光临 全球主机交流论坛 (https://91ai.net/) Powered by Discuz! X3.4