码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • intel 服务器超频 安装stress-ng


    yum源理解
    yum源仓库的地址 在/etc/yum.repos.d/,并且只能读出第一层的repo文件,yum仓库的文件都是以.repo结尾的。
    为加快yum下载,我们下载阿里云的.repo仓库文件 ,放到/etc/yum.repos.d/

    下载前先备份原本的仓库文件
    cd /etc/yum.repos.d/
    mkdir allbak
    mv ./* allbak

    下载阿里云仓库文件
    CentOS 7使用:
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    或者
    curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

    清空原本yum缓存
    yum clean all

    生成新的阿里云的yum缓存,加速下载预热数据
    yum makecache

    测试

    yum list                #显示软件源中所有可用的包

    yum list|grep nfs   #查找软件源中某个包

    其它。

    一般内网服务器通过代理上网,内网服务器修改本地HOST解析,来实现代理上网使用阿里云的yum

    内网服务器修改本地HOST解析

    vi /etc/hosts 编辑HOST文件
    192.18.111.1 mirrors.aliyun.com 添加阿里云yum域名解析

    进行安装stress-ng

    Enable snaps on CentOS and install stress-ng

    Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

    Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.

    Enable snapd

    Snap is available for CentOS 7.6+, and Red Hat Enterprise Linux 7.6+, from the Extra Packages for Enterprise Linux (EPEL) repository. The EPEL repository can be added to your system with the following command:

    sudo yum install epel-release
    

    Snap can now be installed as follows:

    sudo yum install snapd
    

    Once installed, the systemd unit that manages the main snap communication socket needs to be enabled:

    sudo systemctl enable --now snapd.socket
    

    To enable classic snap support, enter the following to create a symbolic link between /var/lib/snapd/snap and /snap:

    sudo ln -s /var/lib/snapd/snap /snap
    

    Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.

    Install stress-ng

    To install stress-ng, simply use the following command:

    sudo snap install stress-ng

     

     

     

  • 相关阅读:
    vb.net自定义白板
    mysql聚合查询
    腾讯安全SOC+能力图谱正式发布,助力政企构建闭环安全运营体系
    企业级DevOps平台搭建及技术选型-项目管理篇
    微信小程序---配置和属性(全局配置的简单使用,运算符以及一些常用属性)
    C++ STL->list模拟实现
    数据中台导读
    CPU的三级缓存
    手机端 Android WebView 获取 blob 链接文件名并下载网页动态生成的 pdf 文件且调用外部程序打开
    【附源码】Python计算机毕业设计民宿网站管理系统
  • 原文地址:https://blog.csdn.net/zhouhuaooo/article/details/127410143
  • 最新文章
  • 沪漂五周年了:我越来越迷茫了
    Agentic Skill Routing 实战:别再把所有 Skill 塞进 AI Agent 上下文
    MySQL-Seconds_behind_master的精度误差
    [MAF预定义ChatClient中间件-03]CachingChatClient——利用缓存省钱省时间
    AI的至暗历史:从万众期待到被政府撤资,AI的两次死亡徘徊
    Agent OS :五种驯服不确定性的范式
    PortSwigger SQL注入LAB11
    数据库即时编译JIT
    [Begin]AI Learn Data Day 0
    深度学习进阶(二十七)现代 LLM 的核心架构设计其二:SwiGLU
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
小工具 小游戏
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1

京公网安备 11010502049817号