mportant;">换国内源:
PVE换源
wget https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg echo "#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise" > /etc/apt/sources.list.d/pve-enterprise.list echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
Debian换源
mv /etc/apt/sources.list /etc/apt/sources.list.bk nano /etc/apt/sources.list
Sources.list加入源
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free # deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free # deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free # deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free # deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
更新
apt update apt upgrade -y
Proxmox VE 内核
安装 pvekclean
apt update && apt -y install git && rm -rf ./pvekclean/ && git clone https://hub.fastgit.org/jordanhillis/pvekclean.git && cd pvekclean && chmod +x pvekclean.sh && ./pvekclean.sh
或
apt update && apt -y install git && rm -rf ./pvekclean/ && git clone https://github.com/jordanhillis/pvekclean.git && cd pvekclean && chmod +x pvekclean.sh && ./pvekclean.sh
运行 pvekclean执行删除pvekclean -f
调整服务器时间(调整后PVE联网几分钟会自动更新时间)
tee /etc/systemd/timesyncd.conf << EOF [Time] NTP=ntp1.cn.ntp.org.cn ntp2.cn.pool.ntp.org EOF
本文链接:https://www.kinber.cn/post/4358.html 转载需授权!
推荐本站淘宝优惠价购买喜欢的宝贝: