{"id":18498117,"url":"https://github.com/quniu/servertool","last_synced_at":"2025-10-06T13:06:03.285Z","repository":{"id":133857078,"uuid":"151845494","full_name":"quniu/servertool","owner":"quniu","description":"服务器工具，开启bbr和测速","archived":false,"fork":false,"pushed_at":"2019-01-24T06:11:53.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-25T17:42:22.044Z","etag":null,"topics":["bbr","bench","benchmark","unixbench"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quniu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-06T14:01:29.000Z","updated_at":"2019-03-09T03:50:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab5c6aee-345c-4557-9798-e97cfd6c02bb","html_url":"https://github.com/quniu/servertool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quniu%2Fservertool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quniu%2Fservertool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quniu%2Fservertool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quniu%2Fservertool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quniu","download_url":"https://codeload.github.com/quniu/servertool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239217107,"owners_count":19601593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bbr","bench","benchmark","unixbench"],"created_at":"2024-11-06T13:37:45.561Z","updated_at":"2025-10-06T13:06:03.200Z","avatar_url":"https://github.com/quniu.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BBR\r\n自动安装TCP BBR的最新内核\r\n\r\n#### 安装\r\n使用root用户登录，运行以下命令：\r\n```\r\nwget --no-check-certificate https://github.com/quniu/servertool/raw/master/bbr.sh \u0026\u0026 chmod +x bbr.sh \u0026\u0026 ./bbr.sh\r\n```\r\n安装完成后，脚本会提示需要重启 VPS，输入 y 并回车后重启。\r\n\r\n#### 查看内核版本\r\n\r\n```\r\nuname -r\r\n```\r\n显示为最新版就表示 OK 了\r\n\r\n#### 校验\r\n```\r\nsysctl net.ipv4.tcp_available_congestion_control\r\n```\r\n返回值一般为：\r\n\r\n`net.ipv4.tcp_available_congestion_control = bbr cubic reno`或者为：`net.ipv4.tcp_available_congestion_control = reno cubic bbr`\r\n\r\n\r\n```\r\nsysctl net.ipv4.tcp_congestion_control\r\n```\r\n返回值一般为：`net.ipv4.tcp_congestion_control = bbr`\r\n\r\n```\r\nsysctl net.core.default_qdisc\r\n```\r\n返回值一般为：`net.core.default_qdisc = fq`\r\n\r\n\r\n#### 查看是否启动\r\n```\r\nlsmod | grep bbr\r\n```\r\n返回值是`tcp_bbr`模块，即说明 bbr 已启动。\r\n\r\n注意：并不是所有的 VPS 都会有此返回值，若没有也属正常。\r\n\r\n\r\n# 服务器测试\r\n服务器下载和I/O测速脚本\r\n\r\n#### 使用命令\r\n```bash\r\nUsage:\r\n\r\n| No.      | Bash Command                    |\r\n|----------|---------------------------------|\r\n| 1        | wget -qO- bench.sh | bash       |\r\n| 2        | curl -Lso- bench.sh | bash      |\r\n| 3        | wget -qO- 86.re/bench.sh | bash |\r\n| 4        | curl -so- 86.re/bench.sh | bash |\r\n```\r\n\r\n[查看介绍](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)\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquniu%2Fservertool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquniu%2Fservertool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquniu%2Fservertool/lists"}