login每天学习一点点,每天进步一点点.
当前位置:首页 >> Centos编译 aria2

Centos编译 aria2

2018-09-28 13:59:10  |  分类: Linux |  标签: 阅读(210)评论(0)



wget https://github.com/aria2/aria2/releases/download/release-1.34.0/aria2-1.34.0.tar.xz

tar xvf aria2*

cd aria*/src


vi OptionHandlerFactory.cc


单服务器最大连接数

TEXT_MAX_CONNECTION_PER_SERVER

最小文件分片大小

TEXT_MIN_SPLIT_SIZE

连接超时时间

TEXT_CONNECT_TIMEOUT

分段长度

TEXT_PIECE_LENGTH

重试等待时间

PREF_RETRY_WAIT

单任务连接数

TEXT_SPLIT



./configure

make

cd src

cp aria2c /usr/local/bin



以下备用

=============================================================================

安装dnf

wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/dnf-conf-0.6.4-2.sdl7.noarch.rpm 

wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64//dnf-0.6.4-2.sdl7.noarch.rpm 

wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/python-dnf-0.6.4-2.sdl7.noarch.rpm 

yum install python-dnf-0.6.4-2.sdl7.noarch.rpm  dnf-0.6.4-2.sdl7.noarch.rpm dnf-conf-0.6.4-2.sdl7.noarch.rpm



编译测试

dnf install openssl openssl-devel libssh2 libssh-devel libxml2 libxml2-devel c-ares c-ares-devel libsqlite3x libsqlite3x-devel

./configure


configure: error: in `/home/aria2-1.34.0':

configure: error: no acceptable C compiler found in $PATH

安装gcc解决上面的问题

yum install gcc


configure: error: *** A compiler with support for C++11 language features is required.


yum install -y gcc gcc-c++



make -j n


参考:https://blog.csdn.net/daloyanf/article/details/78919749

上一篇:ubuntu使用nmap查询端口 下一篇:ThinkPHP5 的视图$view->fetch()和$view->display()的区别

猜你喜欢

发表评论:

0.123453s