如何做360搜索网站,宝安网站设计制作,安徽省两学一做网站,做网站要有什么团队linux中如何进行yum源的挂载
1.首先创建目录[rootserver /]# mkdir /rhel92.使用mount命令进行、dev/cdrom/的镜像文件进行挂载[rootserver /]# mount /dev/cdrom /rhel9/
注意#xff1a;此时设立的是临时命令。重启后则失效#xff0c;若想在下次开启后仍然挂载server /]# mkdir /rhel92.使用mount命令进行、dev/cdrom/的镜像文件进行挂载[rootserver /]# mount /dev/cdrom /rhel9/
注意此时设立的是临时命令。重启后则失效若想在下次开启后仍然挂载则需要写开机启动脚本3.设置开机启动自动挂载脚本
[rootserver /]# vim /etc/rc.d/rc.local#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run chmod x /etc/rc.d/rc.local to ensure
# that this script will be executed during boot.touch /var/lock/subsys/local
mount /dev/cdrom /rhel9
~
~
~
~ 5.给编写的脚本一个可执行权限
[rootserver /]# chmod x /etc/rc.d/rc.local 6.在/etc/yum.repo下创建阿里源用于下载
[rootserver /]# cd /etc/yum.repos.d/
[rootserver yum.repos.d]# vim rhel9.repo
[Appstream]
nameAppstream
baseurlfile:///rhel9/AppStream
gpgcheck0[BaseOS]
nameBaseOS
baseurlfile:///rhel9/BaseOS
gpgcheck07.在linux自带的firefox中访问网址使其可以正常访问则配置成功例如访问网址file:///rhel9/BaseOS
8.实验下载gcc编辑器
[rootserver /]# yum install gcc
上次元数据过期检查3:40:17 前执行于 2024年06月17日 星期一 19时48分53秒。
依赖关系解决。
软件包 架构 版本 仓库 大小安装:gcc x86_64 11.3.1-2.1.el9 Appstream 32 M
安装依赖关系:glibc-devel x86_64 2.34-40.el9 Appstream 47 kglibc-headers x86_64 2.34-40.el9 Appstream 547 kkernel-headers x86_64 5.14.0-162.6.1.el9_1 Appstream 3.4 Mlibxcrypt-devel x86_64 4.4.18-3.el9 Appstream 32 kmake x86_64 1:4.3-7.el9 BaseOS 542 k事务概要安装 6 软件包总计37 M
安装大小94 M
确定吗[y/N] y
下载软件包
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务准备中 : 1/1 安装 : make-1:4.3-7.el9.x86_64 1/6 安装 : kernel-headers-5.14.0-162.6.1.el9_1.x86_64 2/6 安装 : glibc-headers-2.34-40.el9.x86_64 3/6 安装 : libxcrypt-devel-4.4.18-3.el9.x86_64 4/6 安装 : glibc-devel-2.34-40.el9.x86_64 5/6 安装 : gcc-11.3.1-2.1.el9.x86_64 6/6 运行脚本: gcc-11.3.1-2.1.el9.x86_64 6/6 验证 : gcc-11.3.1-2.1.el9.x86_64 1/6 验证 : glibc-devel-2.34-40.el9.x86_64 2/6 验证 : glibc-headers-2.34-40.el9.x86_64 3/6 验证 : kernel-headers-5.14.0-162.6.1.el9_1.x86_64 4/6 验证 : libxcrypt-devel-4.4.18-3.el9.x86_64 5/6 验证 : make-1:4.3-7.el9.x86_64 6/6 已安装:gcc-11.3.1-2.1.el9.x86_64 glibc-devel-2.34-40.el9.x86_64 glibc-headers-2.34-40.el9.x86_64 kernel-headers-5.14.0-162.6.1.el9_1.x86_64 libxcrypt-devel-4.4.18-3.el9.x86_64 make-1:4.3-7.el9.x86_64