标签:更换 fun mtu intern active 添加 ssh端口 etc 端口
mv /etc/apt/sources.list /etc/apt/sources.list.bak && vi /etc/apt/sources.list
deb https://mirrors.aliyun.com/debian/ buster main non-free contrib
deb https://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb https://mirrors.aliyun.com/debian-security/ buster/updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian-security/ buster/updates main non-free contrib
apt-get update -y && apt-get upgrade -y
timedatectl set-timezone Asia/Shanghai # 设置时区
systemctl start systemd-timesyncd # 自动同步时间
hostnamectl set-hostname dcs-edge1.pealog.com
echo "192.168.1.1 pea-edge1.pealog.com pea-edge1" | tee -a /etc/hosts
apt install sudo -y
apt install dpkg-dev vim -y
sed -i ‘s%#Port 22%Port 66%‘ /etc/ssh/sshd_config
systemctl restart sshd
wget -qO - https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-ve-release-6.x.gpg | apt-key add -
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve buster pve-no-subscription" | tee /etc/apt/sources.list.d/pve-install-repo.list
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-nautilus buster main" | tee /etc/apt/sources.list.d/ceph.list
apt-get update -y && apt-get upgrade -y && apt-get install -y gnupg2
apt install proxmox-ve postfix open-iscsi ksmtuned ceph-base -y
选择Internet Site,其他配置选择默认。
dpkg-reconfigure postfix
## 重启 使用PVE内核
reboot
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve buster pve-no-subscription" >> /etc/apt/sources.list
#echo "deb http://download.proxmox.wiki/debian/pve stretch pve-no-subscription" >/etc/apt/sources.list.d/pve-install-repo.list
#echo ‘deb http://download.proxmox.wiki/debian/pve stretch pve-no-subscription‘ >> /etc/apt/sources.list.d/pve-no-subscription.list
rm -rf /etc/apt/sources.list.d/pve-enterprise.list
sed -i_orig "s/data.status !== ‘Active‘/false/g" /usr/share/pve-manager/js/pvemanagerlib.js
#PVE# 在Debian10安装 ProxMox VE 6.*
标签:更换 fun mtu intern active 添加 ssh端口 etc 端口
原文地址:https://www.cnblogs.com/surplus/p/14391801.html