CentOS6.9安装htop,也适用于CentOS7。htop官方网站:http://hisham.hm/htop/ 。git
首先安装首先启用 epel repository。github
[root@localhost ~]# yum -y install epel-release [root@localhost ~]# yum -y update #安装htop [root@localhost ~]# yum install htop
yum安装htop完成。网站
也能够配置阿里云、清华大学等安装源。清华大学连接。阿里云
https://mirrors.tuna.tsinghua.edu.cn/help/epel/code
源码安装htop,首先安装git。ncurses-devel编译安装htop时须要。get
[root@localhost ~]# yum -y install git ncurses-devel
htop GIT源码下载地址。https://github.com/hishamhm/htop源码
git clone htop代码。it
[root@localhost ~]# git clone https://github.com/hishamhm/htop.git
切换到htop代码目录执行./configure; make; sudo make install 便可。编译
下图是centOS6.9安装完成软件运行截图。 软件