Linux下安装资源监视器bashtop

查看系统版本cat /etc/redhat-release

# ########################CentOS 8安装########################
sudo yum install epel-release -y
sudo dnf install bashtop -y
# ###卸载bashtop###
sudo dnf remove bashtop -y
sudo yum remove epel-release -y

# ########################其它系统 安装########################
# 先查看bash版本,如果低于5.0需升级
/bin/bash --version
# ###高于5.0可以忽略以下升级操作###
# 下载5.0或以上版本
wget http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz
# 解压到指定路径
tar -zxvf bash-5.0.tar.gz -C /usr/local/
# 编译并安装
cd /usr/local/bash-5.0
./configure && make && make install
# 创建软连接
mv /bin/bash /bin/bash.bak
ln -s /usr/local/bin/bash /bin/bash
# ###高于5.0可以忽略以上升级操作###

# ######安装bashtop######
cd /usr/local
git clone https://github.com/aristocratos/bashtop.git
cd bashtop
sudo make install
# ###卸载bashtop###
sudo make uninstall
cd /usr/local
rm -rf bashtop

执行命令bashtop,效果如下(Ctrl + C退出):

 

posted @ 2020-12-22 14:02  聚散彡流沙  阅读(394)  评论(0编辑  收藏  举报