安装rhel7.2

1.下载rhel7.2系统

下载地址:https://www.cnblogs.com/wyd168/p/6636529.html

2.制作启动盘

使用工具为:UlstralSO
使用教程参考:http://www.cnblogs.com/coxiseed/p/9851459.html

3.电脑设置为U盘启动

4.安装rhel7.2系统

5.yum换源

1. 查看自带的yum软件包
rpm -qa | grep yum
2. 卸载软件包
rpm -qa | grep yum | xargs rpm -e --nodeps
3. 重新查看软件包
rpm -qa | grep yum
4. 测试网络是否正常
5. 下载依赖

相关链接:https://blog.csdn.net/feng_zhiyu/article/details/80464336
网易163网络源地址:http://mirrors.163.com/
使用CTRL+F输入关键字查找对应的安装包即可

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-*,会报错,需要依赖项
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. 运行指令
rpm -ivh yum-*
9. 创建repo文件
vim /etc/yum.repos.d/CentOS-Base.repo
10.输入以下内容保存
#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

相关链接:https://blog.csdn.net/qq_36501722/article/details/82115343

7. 安装nginx服务器

相关链接:https://www.cnblogs.com/wyd168/p/6636529.html

你可能感兴趣的:(安装rhel7.2)