1.下載rhel7.2系統(tǒng)
下載地址:https://www.cnblogs.com/wyd168/p/6636529.html
2.制作啟動盤
使用工具為:UlstralSO
使用教程參考:http://www.cnblogs.com/coxiseed/p/9851459.html
3.電腦設(shè)置為U盤啟動
略
4.安裝rhel7.2系統(tǒng)
略
5.yum換源
1. 查看自帶的yum軟件包
rpm -qa | grep yum
2. 卸載軟件包
rpm -qa | grep yum | xargs rpm -e --nodeps
3. 重新查看軟件包
rpm -qa | grep yum
4. 測試網(wǎng)絡(luò)是否正常
5. 下載依賴
相關(guān)鏈接:https://blog.csdn.net/feng_zhiyu/article/details/80464336
網(wǎng)易163網(wǎng)絡(luò)源地址:http://mirrors.163.com/
使用CTRL+F
輸入關(guān)鍵字查找對應(yīng)的安裝包即可
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-161.el7.centos.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-langpacks-0.4.2-7.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-utils-1.1.31-50.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-updateonboot-1.1.31-50.el7.noarch.rpm
6. 直接使用指令rpm -ivh yum-*,會報(bào)錯,需要依賴項(xiàng)
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/rpm-4.11.3-35.el7.x86_64.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-urlgrabber-3.10-9.el7.noarch.rpm
7. 更新rpm
rpm -Uvh rpm-4.11.3-35.el7.x86_64.rpm --nodeps
rpm -Uvh Packages/python-urlgrabber-3.10-9.el7.noarch.rpm
8. 運(yùn)行指令
rpm -ivh yum-*
9. 創(chuàng)建repo文件
vim /etc/yum.repos.d/CentOS-Base.repo
10.輸入以下內(nèi)容保存
#CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$7 - Base - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/7/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$7 - Updates - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-$7 - Extras - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/7/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$7 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/7/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
6. 使用python3和pip3
相關(guān)鏈接:https://blog.csdn.net/qq_36501722/article/details/82115343
7. 安裝nginx服務(wù)器
相關(guān)鏈接:https://www.cnblogs.com/wyd168/p/6636529.html