CentOS 6 已經 EOL ( End of Lifetime ) 了,也就是 R.I.P ( Rest in peace ) 不再支援任何更新了。
這對系統來說是非常可怕的,就算有任何漏洞,都不再做任何維護更新。
但是總一定會找到要安裝 CentOS 6 這種老系統的藉口,好吧,所以步驟如下:
- 到 https://vault.centos.org/ 下載 ISO 檔案,例如: https://vault.centos.org/6.10/isos/x86_64/CentOS-6.10-x86_64-minimal.iso 。
- 燒成光碟,或做成 USB 開機。
- 安裝吧!
- 修改 vi /etc/yum/pluginconf.d/fastestmirror.conf,
把 enabled=0 。強迫停止 fast mirror 網站。 - 修改 vi /etc/yum.repos.d/CentOS-Base.repo
[base]name=CentOS-$releasever - Base#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infrabaseurl=https://vault.centos.org/6.10/os/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#released updates[updates]name=CentOS-$releasever - Updates#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infrabaseurl=https://vault.centos.org/6.10/updates/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#additional packages that may be useful[extras]name=CentOS-$releasever - Extras#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infrabaseurl=https://vault.centos.org/6.10/extras/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6