# 检查是否安装 gcc gcc -v # 安装 ncurses 库 yum install -y ncurses-devel # 下载 htop wget http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz # 编译、安装 htop tar zxvf htop-2.0.2.tar.gz cd htop-2.0.2 ./configure make make install