性能监控工具btop

一、安装

  • 安装相关依赖
yum install coreutils sed git build-essential -y
  • 升级gcc(10及以上版本)
yum install centos-release-scl -y
yum install devtoolset-10 -y
scl enable devtoolset-10 bash
echo "source /opt/rh/devtoolset-10/enable" >> /etc/profile
# 检查当前系统的gcc版本,可以看到现在gcc的版本为10 gcc -v
  • 获取源码安装
git clone https://gitee.com/mirrors/btop.git
cd btop make && make install

二、使用

  • 安装完成后,在任意路径下执行btop就可以看到效果了
  • 按下数字键‘1’‘2’‘3’‘4’可以关闭或显示某一块信息

 

posted @ 2021-12-15 16:56  稻草人&梦想  阅读(1424)  评论(0)    收藏  举报