axel linux

Axel简介

Axel是一个开源的多协议HTTP/HTTPS下载工具,支持HTTP、HTTPS、FTP、SFTP、BitTorrent和Metalink等多种协议,它具有速度快、占用资源少、支持断点续传等特点,适用于Linux系统下的文件下载。

如何在Linux系统中安装Axel

1、更新系统软件包列表

axel linux

在安装Axel之前,首先需要更新系统的软件包列表,在终端中输入以下命令:

sudo apt-get update

2、安装依赖库

Axel依赖于libcurl4-openssl-dev和libssl-dev这两个库,所以需要先安装这两个库,在终端中输入以下命令:

sudo apt-get install libcurl4-openssl-dev libssl-dev

3、下载Axel源码

从GitHub上下载Axel的源码包,或者使用以下命令直接下载:

axel linux

wget https://github.com/axel-download-mirror/axel/archive/refs/tags/3.86.tar.gz

4、解压源码包

将下载好的源码包解压到一个目录中:

tar -zxvf 3.86.tar.gz

5、编译并安装Axel

进入解压后的目录,然后执行以下命令进行编译和安装:

cd axel-3.86/src/main/cmake/axel_build_linux_release
cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_SSL=ON -DUSE_LIBCURL=ON -DUSE_BUNDLED_ZLIB=OFF -DUSE_BUNDLED_OPENSSL=ON -DUSE_BUNDLED_LIBRT=OFF -DUSE_BUNDLED_LZO=OFF -DUSE_BUNDLED_LZ4=OFF -DUSE_BUNDLED_SNAPPY=OFF -DUSE_BUNDLED_ZSTD=OFF -DUSE_BUNDLED_ZSTD_STATIC=OFF -DUSE_BUNDLED_ZSTD_DYNAMIC=OFF -DUSE_BUNDLED_BROTLI=OFF -DUSE_BUNDLED_BZIP2=OFF -DCMAKE_INSTALL_PREFIX=/usr/local
make && sudo make install

如何使用Axel下载文件

1、打开终端,进入Axel的安装目录:

axel linux

cd /usr/local/bin/axel/src/main/resources/bin/linux64/release/axel

2、使用Axel下载文件,语法如下:

axel <url> [<output file path>] [<max connections>] [<thread count>] [<timeout in seconds>] [<resumable download>] [<split files>] [<split size>] [<skip headers>] [<follow redirects>] [<proxy server host>] [<proxy server port>] [<proxy username>] [<proxy password>] [<user agent string>] [<custom headers>] [<cookie jar file path>] [<cookies from domain name>] [<force resume download>] [<force reconnection to the same server>] [<randomize order of downloads>] [<download only new files or updates>] [<remove existing files before downloading>] [<delete downloaded files after completion>] [<enable http range requests for resumable downloads>] [<enable http authentication for resumable downloads>] [<enable http cookies for resumable downloads>] [<enable http user agents for resumable downloads>] [<use custom user agents for resumable downloads>] [<use custom headers for resumable downloads>] [<use custom cookie jar for resumable downloads>] [<use custom proxy settings for resumable downloads>] [<use custom download order for resumable downloads>] [<use custom file naming scheme for resumable downloads>] [<use custom file storage directory for resumable downloads>] [<use custom file naming prefix and suffix for resumable downloads>] [<use custom file storage directory and naming scheme for resumable downloads>] [<use custom file storage directory and prefix and suffix for resumable downloads>] [<use custom file storage directory and naming scheme and prefix and suffix for resumable downloads>] [<use custom file storage directory and naming scheme and prefix and suffix and other options for resumable downloads>]

3、要下载一个名为example.txt的文件,可以使用以下命令:

axel https://www.example.com/example.txt example.txt 10 50 --no-resume --split-files --split-size 10M --randomize-order --remove-existing --delete-after --http-header 'User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537' --http-auth 'username:password' --http-proxy 'proxyserver:port' --http-cookies 'domain:name' --download-dir '/home/user/Downloads' --http-range 'bytes=0-1023' --http-follow-redirects --http-no-headers --http-post-fields 'key=value' --http-post-files 'file1=/path/to/file1;file2=/path/to/file2' --http-user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537' --http-cookies 'domain:name' --http-auth 'username:password' --http-proxy 'proxyserver:port' --http-no-headers --http-post-fields 'key=value' --http-post-files 'file1=/path/to/file1;file2=/path/to/file2' --http-user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537' --http-cookies 'domain:name' --http-auth 'username:password' --http-proxy 'proxyserver:port' --http-no-headers --http-post-fields 'key=value' --http-post-files 'file1=/path/to/file1;file2=/path/to/file2' --http-user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537' --http-cookies 'domain:name' --http-auth 'username:password' --http-proxy 'proxyserver:port' --http-no-headers --http-post-fields 'key=value' --http-post-files 'file1=/path/to/file1;file2=/path/to/file2' --http-user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit

原创文章,作者:K-seo,如若转载,请注明出处:https://www.kdun.cn/ask/214710.html

Like (0)
Donate 微信扫一扫 微信扫一扫
K-seoK-seo
Previous 2024-01-12 08:00
Next 2024-01-12 08:04

相关推荐

  • Linux中删除文件夹的方法和注意事项「linux中删除文件夹的方法和注意事项是什么」

    在Linux中,删除文件夹的方法有多种,但需要注意的是,删除文件夹时一定要谨慎,因为一旦删除,其中的所有文件和子文件夹都将被永久删除,以下是一些常用的删除文件夹的方法和注意事项。1. 使用rm命令删除文件夹rm命令是Linux中最常用的删除文件和文件夹的命令,要删除一个文件夹,可以使用以下语法:rm -r 文件夹名称-r选项表示递归删……

    2023-11-15
    0141
  • 如何在LINUX系统下安装MySQL压力测试工具super smack

    super_smack简介super_smack是一个用于MySQL数据库的开源压力测试工具,它可以模拟大量并发用户对数据库进行操作,以测试数据库在高负载情况下的性能表现,super_smack支持多种协议,如HTTP、SMTP等,可以方便地与其他应用程序集成,super_smack还提供了丰富的统计信息,可以帮助开发者分析和优化数据……

    2024-01-11
    0156
  • 用于黑客渗透测试的21个Kali Linux工具分别是什么

    1. Wireshark:网络协议分析器,用于捕获和分析网络数据包。2. Nmap:端口扫描工具,用于发现网络上的主机和服务。3. Metasploit:漏洞利用框架,用于开发和执行渗透测试脚本。4. Aircrack-ng:无线网络攻击和破解工具,用于捕获和破解WiFi密码。5. John the Ripper:密码破解工具,用于破……

    2023-11-13
    0162
  • linux是内核吗?

    Linux是一个内核,它是操作系统的核心部分,内核是计算机系统中最底层的软件,负责管理硬件资源、提供进程间通信和调度等重要功能。在Linux中,内核主要负责以下几个方面的工作:1. 硬件抽象层:内核提供了一组抽象接口,使得应用程序可以与硬件进行交互,而无需直接操作硬件,应用程序就可以在不同的硬件平台上运行,而无需修改代码。2. 进程管……

    2023-11-30
    0149
  • 基于SecureCRT向远程Linux主机上传下载文件步骤图解

    基于SecureCRT向远程Linux主机上传下载文件步骤图解SecureCRT是一款支持SSH(SSH1和SSH2)的终端仿真程序,主要用于连接远程服务器,通过SecureCRT,我们可以方便地向远程Linux主机上传和下载文件,本文将详细介绍如何使用SecureCRT进行文件传输。安装SecureCRT1、访问SecureCRT官……

    2024-02-24
    0313
  • chmod命令用法linux

    chmod命令用于改变文件或目录的访问权限,支持多种权限模式。

    2024-02-08
    0189

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

免备案 高防CDN 无视CC/DDOS攻击 限时秒杀,10元即可体验  (专业解决各类攻击)>>点击进入