Update 1970-01-01-proxmox.md

This commit is contained in:
berlin2123 2021-05-15 19:19:28 +08:00 committed by GitHub
parent 1dab780651
commit ddd02aff41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,17 +36,17 @@ ISO安装文件下载[https://{{ site.hostname }}/proxmox/iso/](https://{{ si
# CT Templates
如果你需要加速 Proxmox 网页端下载 CT Templates可以替换 CT Templates 的源为 ``https://{{ site.hostname }}``
如果你需要加速 Proxmox 网页端下载 CT Templates可以替换 CT Templates 的源为 `https://{{ site.hostname }}`
具体方法:将 `/usr/share/perl5/PVE/APLInfo.pm` 文件中默认的源地址 ``http://download.proxmox.com``
替换为 ``https://{{ site.hostname }}/proxmox`` 即可。
具体方法:将 `/usr/share/perl5/PVE/APLInfo.pm` 文件中默认的源地址 `http://download.proxmox.com`
替换为 `https://{{ site.hostname }}/proxmox` 即可。
可以使用如下命令修改:
::
```
cp /usr/share/perl5/PVE/APLInfo.pm /usr/share/perl5/PVE/APLInfo.pm_back
sed -i 's|http://download.proxmox.com|https://{{ site.hostname }}/proxmox|g' /usr/share/perl5/PVE/APLInfo.pm
```
针对 :file:`/usr/share/perl5/PVE/APLInfo.pm` 文件的修改,重启后生效。
针对 `/usr/share/perl5/PVE/APLInfo.pm` 文件的修改,重启后生效。