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
如图
本作品采用《CC 协议》,转载必须注明作者和本文链接