VPS

CentOS/UbuntuVPS上安装htop并查看CPU使用情况

Posted by on October 8, 2018

安装 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 页面