Merge pull request #266 from berlin2123/patch-2

Update 1970-01-01-proxmox.md
This commit is contained in:
Zenithal 2021-05-16 03:08:29 +08:00 committed by GitHub
commit 2292c2c5ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,3 +33,20 @@ deb https://{%endraw%}{{ site.hostname }}{%raw%}/proxmox/{{os_name}} {{release_n
{%endraw%}
ISO安装文件下载[https://{{ site.hostname }}/proxmox/iso/](https://{{ site.hostname }}/proxmox/iso/)
### CT Templates
如果你需要加速 Proxmox 网页端下载 CT Templates可以替换 CT Templates 的源为 `https://{{ site.hostname }}`
具体方法:将 `/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
```
针对 `/usr/share/perl5/PVE/APLInfo.pm` 文件的修改,重启后生效。