码农知识堂 - 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

     

     

     

  • 相关阅读:
    Apache DolphinScheduler 简单任务定义及复杂的跨节点传参
    前端实现将内容复制到剪切板的实现方法(个人项目使用)
    (高阶)Redis 7 第12讲 数据双写一致性 经验篇
    Linux/麒麟系统上部署Vue+SpringBoot前后端分离项目
    测试的重要性及目的
    【蓝桥杯冲击国赛计划第1天】单向链表
    LeetCode_队列_中等_649.Dota2 参议院
    操作users表的CRUD(增、查、删、改)
    IDEA插件开发(13)---Dynamic Plugins
    ghost备份怎么分卷ghost.exe -split=2048
  • 原文地址:https://blog.csdn.net/zhouhuaooo/article/details/127410143
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号