安装 htop 命令
-
CentOS系统 第一种方案: yum -y install epel-release
yum -y update yum -y install htop
第二种方案:
yum -y install ncurses-devel wget
wget http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz
tar xvfvz htop-2.0.2.tar.gz
cd htop-2.0.2
./configure --disable-unicode && make && make install
安装完成后,输入 htop 查看是否安装成功
-
Debian / Ubuntu:
apt install -y htop
输入 htop 回车之后,就可以看到 htop 页面