系统环境:Redhat 8.8
yum镜像:Redhat 8.8
Apache(httpd):
一、系统挂载镜像
[root@localhost ~]# lsblk
[root@localhost ~]# mkdir /tmp/cdrom
[root@localhost ~]# mount /dev/sr0 /tmp/cdrom/[root@localhost ~]# df -h

将镜像中文件复制到 /iso/rhel-8.8-x86_64下。
[root@localhost ~]#mkdir -p /iso/rhel-8.8-x86_64
[root@localhost ~]#cp -R /tmp/cdrom/* /iso/rhel-8.8-x86_64/

二、服务器自身配置yum源
[root@localhost ~]#cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# touch redhat.repo
[root@localhost yum.repos.d]# vim redhat.repo
[base]
name=BaseOS
baseurl=file:///iso/rhel-8.8-x86_64/BaseOS
enable=1
gpgcheck=0[AppStream]
name=AppStream
baseurl=file:///iso/rhel-8.8-x86_64/AppStream
enable=1
gpgcheck=0[root@localhost yum.repos.d]# yum clean all
[
Redhat 8.8系统安装配置Apache(httpd)

最低0.47元/天 解锁文章
1526

被折叠的 条评论
为什么被折叠?



