在Redhat8.2 系统下安装htop,相比较top,htop更方便,具体的使用,百度一下你就知道
先上传一个htop源码包,
[root@localhost htop]# ls
htop-2.0.2.tar.gz
[root@localhost htop]# tar zxf htop-2.0.2.tar.gz
[root@localhost htop]# ls
htop-2.0.2 htop-2.0.2.tar.gz
[root@localhost htop]# cd htop-2.0.2/
[root@localhost htop-2.0.2]# ./configure
在预编译./configure后,如果报下面错误,请安装 yum install ncurses-devel -y
configure: error: You may want to use --disable-unicode or install libncursesw.
然后 make&&make install