CentOS 6.9 yum 和源碼安裝htop,適用於centOS 7

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安裝完成軟件運行截圖。 htop軟件

相關文章
相關標籤/搜索