Htop 源码安装过程以及问题

一、下载源码

下载地址(tar 压缩包)

Htop 源码安装过程以及问题

二、使用scp 或者 ftp将下载包传入到我们服务器指定路径

进入到文件所在目录执行 并将其传到服务器home路径下:
scp -rp ./htop.3.2.2.tar.zx root@172.0.18.10:/home/
回车输入服务器密码:

三、使用ssh或者其他 shell工具进入到我们服务器

如 使用Item:
ssh root@172.0.18.10 回车输入密码
执行 cd /home/ && tar xzf htop.3.2.2.tar.zx

cd htop.3.2.2

# 执行 编译
./configure
#如果遇到错误执行:
#如: configure: error: You may want to use --disable-unicode or install libncursesw
#执行:
yum install -y ncurses-devel
再次执行:
./configure
遇到:
configure: creating ./config.status
config.status: creating Makefile
config.status: creating htop.1
config.status: creating config.h
config.status: executing depfiles commands
检测成功
执行 
make && make install

四、可以在服务器操作我们想要的命令

htop 如图

Htop 源码安装过程以及问题

本作品采用《CC 协议》,转载必须注明作者和本文链接
每天一点小知识,到那都是大佬,哈哈
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!