1
0
mirror of synced 2024-11-21 20:46:10 +03:00

Update docs

- Remove CentOS 7 and Debian 10, which reached EOL as of June 30, 2024.
This commit is contained in:
hwdsl2 2024-07-28 16:45:47 -05:00
parent 65fc2ef508
commit 721ea3306b
4 changed files with 6 additions and 88 deletions

View File

@ -73,8 +73,8 @@ https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh
一个云服务器,虚拟专用服务器 (VPS) 或者专用服务器,安装以下操作系统之一: 一个云服务器,虚拟专用服务器 (VPS) 或者专用服务器,安装以下操作系统之一:
- Ubuntu 24.04, 22.04 或者 20.04 - Ubuntu 24.04, 22.04 或者 20.04
- Debian 12, 11 或者 10 - Debian 12 或者 11
- CentOS 7 或者 CentOS Stream 9 - CentOS Stream 9
- Rocky Linux 或者 AlmaLinux 9/8 - Rocky Linux 或者 AlmaLinux 9/8
- Oracle Linux 9, 8 或者 7 - Oracle Linux 9, 8 或者 7
- Amazon Linux 2 - Amazon Linux 2

View File

@ -73,8 +73,8 @@ A pre-built [Docker image](https://github.com/hwdsl2/docker-ipsec-vpn-server) is
A cloud server, virtual private server (VPS) or dedicated server, with an install of: A cloud server, virtual private server (VPS) or dedicated server, with an install of:
- Ubuntu 24.04, 22.04 or 20.04 - Ubuntu 24.04, 22.04 or 20.04
- Debian 12, 11 or 10 - Debian 12 or 11
- CentOS 7 or CentOS Stream 9 - CentOS Stream 9
- Rocky Linux or AlmaLinux 9/8 - Rocky Linux or AlmaLinux 9/8
- Oracle Linux 9, 8 or 7 - Oracle Linux 9, 8 or 7
- Amazon Linux 2 - Amazon Linux 2

View File

@ -12,7 +12,7 @@ Google BBR已经被内置于Linux内核4.9及更高版本中,但是需要手
可以通过命令 `uname -r` 来查看当前Linux内核版本。版本大于等于4.9时,可以直接参照[下方的说明](#部署-google-bbr)部署BBR。 可以通过命令 `uname -r` 来查看当前Linux内核版本。版本大于等于4.9时,可以直接参照[下方的说明](#部署-google-bbr)部署BBR。
通常而言Ubuntu 18.04+, Debian 10+CentOS 8+及RHEL 8+的内核版本都大于4.9。但是对于CentOS 7或者Amazon Linux 2需要通过以下的方式更新内核之后才能部署Google BBR。 通常而言Ubuntu 18.04+, Debian 10+CentOS 8+及RHEL 8+的内核版本都大于4.9。但是对于Amazon Linux 2需要通过以下的方式更新内核之后才能部署Google BBR。
### Amazon Linux 2 ### Amazon Linux 2
@ -35,47 +35,6 @@ Amazon Linux 2提供过经过验证的新版Linux内核并可以通过启用
uname -r uname -r
``` ```
### CentOS 7
当使用CentOS 7时需要安装由ELRepo Project提供的新版Linux内核。可以在[这个页面](http://elrepo.org/tiki/kernel-ml)找到有关ELRepo Project提供的Linux内核的更多信息。
参见下面的安装说明。
1. 导入ELRepo Project的公钥。
```bash
sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
```
2. 为 RHEL-7、SL-7 或 CentOS-7 安装 ELRepo。
```bash
sudo yum install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
```
3. 安装 `kernel-ml`
```bash
sudo yum --enablerepo=elrepo-kernel install kernel-ml
```
4. 确认结果。
```bash
rpm -qa | grep kernel
```
你应该在输出中看到 `kernel-ml-xxx`
5. 显示 grub2 菜单中的所有条目并设置 `kernel-ml`
```bash
sudo egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'
```
**索引从 `0` 开始。**
例如,当 `kernel-ml` 位于 `1` 时,使用下面的命令来激活 `kernel-ml`
```bash
sudo grub2-set-default 1
```
6. 重启。
```bash
sudo reboot
```
7. 检查 Linux 内核版本。
```bash
uname -r
```
## 部署 Google BBR ## 部署 Google BBR
在这个部分我们将通过修改配置文件启动Google BBR。 在这个部分我们将通过修改配置文件启动Google BBR。

View File

@ -12,7 +12,7 @@ To learn more about the Google BBR algorithm, see this [official blog](https://c
You can check the current Linux kernel version with the command `uname -r`. When the version is greater than or equal to 4.9, you can deploy BBR directly by referring to the [instructions below](#deploy-google-bbr). You can check the current Linux kernel version with the command `uname -r`. When the version is greater than or equal to 4.9, you can deploy BBR directly by referring to the [instructions below](#deploy-google-bbr).
Generally speaking, the kernel versions of Ubuntu 18.04+, Debian 10+, CentOS 8+ and RHEL 8+ are greater than 4.9. But for CentOS 7 or Amazon Linux 2, you need to update the kernel in the following ways before deploying Google BBR. Generally speaking, the kernel versions of Ubuntu 18.04+, Debian 10+, CentOS 8+ and RHEL 8+ are greater than 4.9. But for Amazon Linux 2, you need to update the kernel in the following ways before deploying Google BBR.
### Amazon Linux 2 ### Amazon Linux 2
@ -35,47 +35,6 @@ Amazon Linux 2 provides newer versions of the verified Linux kernel, which can b
uname -r uname -r
``` ```
### CentOS 7
When using CentOS 7, a newer Linux kernel provided by the ELRepo Project needs to be installed. More information about the Linux kernels provided by the ELRepo Project can be found at [this page](http://elrepo.org/tiki/kernel-ml).
Refer to the installation instructions below.
1. Import ELRepo Project's public key.
```bash
sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
```
2. Install ELRepo for RHEL-7, SL-7 or CentOS-7.
```bash
sudo yum install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
```
3. Install `kernel-ml`.
```bash
sudo yum --enablerepo=elrepo-kernel install kernel-ml
```
4. Confirm the result.
```bash
rpm -qa | grep kernel
```
You should see `kernel-ml-xxx` in output.
5. Show all entries in the grub2 menu and setup `kernel-ml`.
```bash
sudo egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'
```
**Indexing starts at `0`.**
For example, when the `kernel-ml` is located at `1`, use the command below to activate `kernel-ml`.
```bash
sudo grub2-set-default 1
```
6. Reboot.
```bash
sudo reboot
```
7. Check Linux kernel version.
```bash
uname -r
```
## Deploy Google BBR ## Deploy Google BBR
In this section, we will start Google BBR by modifying the configuration file. In this section, we will start Google BBR by modifying the configuration file.