ProxmoxVE5 4 1配置映象源和NTP校時

2021-09-29 18:53:10 字數 2208 閱讀 4375

一、配置pve映象源

# 刪除企業源

rm -rf /etc/apt/sources.list.d/pve-enterprise.list

# 5.4秘鑰

wget -o /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg

# 6.0秘鑰

# wget -o /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg

# 新增5.4社群源

echo

"deb stretch pve-no-subscription"

>/etc/apt/sources.list.d/pve-install-repo.list

# 新增6.x社群源

#echo "deb buster pve-no-subscription">/etc/apt/sources.list.d/pve-install-repo.list

二、配置debian和ceph映象源
# 配置阿里雲debian源

mv /etc/apt/sources.list /tmp/sources.list

echo

"deb stretch main non-free contrib"

>/etc/apt/sources.list

echo

"deb-src stretch main non-free contrib"

>>/etc/apt/sources.list

echo

"deb stretch/updates main"

>>/etc/apt/sources.list

echo

"deb-src stretch/updates main"

>>/etc/apt/sources.list

echo

"deb stretch-updates main non-free contrib"

>>/etc/apt/sources.list

echo

"deb-src stretch-updates main non-free contrib"

>>/etc/apt/sources.list

echo

"deb stretch-backports main non-free contrib"

>>/etc/apt/sources.list

echo

"deb-src stretch-backports main non-free contrib"

>>/etc/apt/sources.list

# 6.x使用阿里雲源

# echo deb buster main contrib>/etc/apt/sources.list

# echo deb buster-updates main contrib>>/etc/apt/sources.list

# echo deb buster/updates main contrib>>/etc/apt/sources.list

# 配置ceph源

# 6.0ceph

# echo "deb buster main" >>/etc/apt/sources.list

# 5.4ceph

echo

"deb stretch main"

>>/etc/apt/sources.list

cat /tmp/sources.list>>/etc/apt/sources.list

rm -rf /tmp/sources.list

# 更新快取

apt update

三、配置ntp校時
# 更改ntp配置

echo

[time]

>/etc/systemd/timesyncd.conf

echo ntp=ntp1.aliyun.com ntp2.aliyun.com time1.cloud.tencent.com time2.cloud.tencent.com>>/etc/systemd/timesyncd.conf

# 重新服務

systemctl restart systemd-timesyncd

# 檢視日誌

journalctl --since -1h -u systemd-timesyncd

Zhong docker配置映象源

環境 centos7 說明 鑑於國內網路問題,拉取 docker 映象十分緩慢,我們可以配置加速器來解決 新版的 docker 使用 etc docker daemon.json linux 或者 programdata docker config daemon.json windows 來配置 d...

Ubuntu映象源和pypi映象源

ubuntu映象源 映象源的位置在系統中的 ubuntu zhangl vim etc apt sources.list ubuntu系統 注意系統版本 原映象內容如下 com ubuntu trusty main國內163的映象源內容如下 deb wily main restricted univ...

pip配置國內映象源

linux下配置pip映象源 清華大學 網易 阿里雲 中國科技大學 豆瓣 中國科學院 華中科技大學 pip install i 要安裝的包1 c盤使用者目錄下新建乙個pip資料夾 2 在pip資料夾下建立乙個txt檔案然後copy下面的內容 global timeout 6000 index url...