RHCA II之路---EX442-21

1. 题目

在这里插入图片描述

2. 解题

这题没有办法完全模拟出来,但效果大致如下.
考试时候它给你2个url
yum3.example.com/ansible-doc
yum4.example.com/ansible-doc
需要做的事情如下:

  1. 将给定的url配置到yum仓库ansible-doc中
  2. 用perf命令测试安装ansible-doc过程的耗时
  3. 删除ansible-doc所有涉及的包
  4. 用另一个url配置仓库,再次比对安装时间.
  5. 最后yum仓库中保留较快的那个url
    答案是第一个地址会更快一点

2.1 配置yum

这一步模拟环境中不要做

[ansible-doc]
baseurl = http://yum3.example.com/ansible-doc
enabled = true
gpgcheck = false
name = ansible-doc

2.2 安装perf

yum install -y perf

2.3 安装/卸载 ansible-doc

perf stat yum install ansible-doc -y
yum history
# 如果是第13条安装的话,用下一条命令卸载
yum history undo 13

在这里插入图片描述
卸载完后换源再次安装

perf stat yum install ansible-doc -y

以上都是考试时候操作的,本题在实验环境中执行以下命令,模拟关键步骤的执行

echo 'perf stat yum install ansible-doc -y' > 21.txt

3. 确认

在这里插入图片描述

相关推荐

  1. 前端小白的学习(ES6 一)

    2024-07-15 17:58:03       32 阅读
  2. 前端小白的学习(ES6 二)

    2024-07-15 17:58:03       35 阅读
  3. 前端小白的学习(ES6 三)

    2024-07-15 17:58:03       42 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-15 17:58:03       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-15 17:58:03       72 阅读
  3. 在Django里面运行非项目文件

    2024-07-15 17:58:03       58 阅读
  4. Python语言-面向对象

    2024-07-15 17:58:03       69 阅读

热门阅读

  1. Spring Boot和Spring有什么区别

    2024-07-15 17:58:03       15 阅读
  2. python2与python3中的subprocess.Popen差异

    2024-07-15 17:58:03       20 阅读
  3. 面向开发者的提示词工程第一章-简介

    2024-07-15 17:58:03       23 阅读
  4. Python网页开发的常用框架

    2024-07-15 17:58:03       21 阅读
  5. 721. 账户合并 Medium

    2024-07-15 17:58:03       24 阅读
  6. DMA和DMAC

    2024-07-15 17:58:03       22 阅读
  7. 面试官:说说MySQL 中的悲观锁和乐观锁

    2024-07-15 17:58:03       20 阅读