Proxmox VE 6.x 安装后需要做的那些事

in 分享 with 0 comment

替换企业源为社区源

# 删除企业源
rm -rf /etc/apt/sources.list.d/pve-enterprise.list
# 加入 GPG 密钥
wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg
# 加入官方社区源
echo 'deb http://download.proxmox.com/debian/pve buster pve-no-subscription' > /etc/apt/sources.list.d/pve-no-subscription.list
# 更新包列表
apt-get update && apt dist-upgrade

社区源清华大学镜像:

echo 'deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian buster pve-no-subscription' > /etc/apt/sources.list.d/pve-no-subscription.list

社区源中科大镜像:

echo 'deb http://mirrors.ustc.edu.cn/proxmox/debian buster pve-no-subscription' > /etc/apt/sources.list.d/pve-no-subscription.list

社区源中文社区镜像:

echo 'deb http://download.proxmox.wiki/debian/pve buster pve-no-subscription' > /etc/apt/sources.list.d/pve-no-subscription.list

替换 Debian 源为国内阿里云镜像源

sed -i 's/ftp.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
sed -i 's/security.debian.org/mirrors.aliyun.com\/debian-security/g' /etc/apt/sources.list
apt-get update && apt upgrade

开启 BBR

修改 sysctl.conf

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf

保存生效

sysctl -p

检测是否已启用 BBR 模块

lsmod | grep bbr
Responses