点击查看代码
1、下载安装包
[root@localhost ~]# wget http://acme.com/software/http_load/http_load-09Mar2016.tar.gz
2、解压安装包
[root@localhost ~]# tar -zxvf http_load-09Mar2016.tar.gz -C /usr/local/
2、修改文件夹属主
[root@localhost ~]#cd /usr/local/
[root@localhost ~]#chown -R root.root http_load-09Mar2016
3、编译安装
[root@localhost ~]# cd http_load-09Mar2016
[root@localhost ~]# make && make install
4、检查http_load命令是否安装
[root@localhost ~]# which http_load
/usr/local/bin/http_load
问题:make install报错
install: cannot create regular file '/usr/local/man/man1': No such file or directory make: *** [install] Error 1
办法:make install前创建man目录。
mkdir /usr/local/man
来源