https://github.com/quniu/servertool
服务器工具,开启bbr和测速
https://github.com/quniu/servertool
bbr bench benchmark unixbench
Last synced: 8 months ago
JSON representation
服务器工具,开启bbr和测速
- Host: GitHub
- URL: https://github.com/quniu/servertool
- Owner: quniu
- License: gpl-3.0
- Created: 2018-10-06T14:01:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-24T06:11:53.000Z (over 7 years ago)
- Last Synced: 2024-12-25T17:42:22.044Z (over 1 year ago)
- Topics: bbr, bench, benchmark, unixbench
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BBR
自动安装TCP BBR的最新内核
#### 安装
使用root用户登录,运行以下命令:
```
wget --no-check-certificate https://github.com/quniu/servertool/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
```
安装完成后,脚本会提示需要重启 VPS,输入 y 并回车后重启。
#### 查看内核版本
```
uname -r
```
显示为最新版就表示 OK 了
#### 校验
```
sysctl net.ipv4.tcp_available_congestion_control
```
返回值一般为:
`net.ipv4.tcp_available_congestion_control = bbr cubic reno`或者为:`net.ipv4.tcp_available_congestion_control = reno cubic bbr`
```
sysctl net.ipv4.tcp_congestion_control
```
返回值一般为:`net.ipv4.tcp_congestion_control = bbr`
```
sysctl net.core.default_qdisc
```
返回值一般为:`net.core.default_qdisc = fq`
#### 查看是否启动
```
lsmod | grep bbr
```
返回值是`tcp_bbr`模块,即说明 bbr 已启动。
注意:并不是所有的 VPS 都会有此返回值,若没有也属正常。
# 服务器测试
服务器下载和I/O测速脚本
#### 使用命令
```bash
Usage:
| No. | Bash Command |
|----------|---------------------------------|
| 1 | wget -qO- bench.sh | bash |
| 2 | curl -Lso- bench.sh | bash |
| 3 | wget -qO- 86.re/bench.sh | bash |
| 4 | curl -so- 86.re/bench.sh | bash |
```
[查看介绍](https://github.com/quniu/tool/wiki/bench%E6%B5%8B%E8%AF%95%E8%84%9A%E6%9C%AC%E4%BB%8B%E7%BB%8D)