linux curl失败自动连接、断点续传、多线程下载几百G文件

curl --parallel --parallel-immediate -k -L -C - -o local_file ftp_file

--parallel --parallel-immediate 开启多线程:

--parallel      Perform transfers in parallel
--parallel-immediate Do not wait for multiplexing (with --parallel)
--parallel-max  Maximum concurrency for parallel transfers

-C - 开启断点续传:

-C, --continue-at Resumed transfer offset

-o指定输出文件名称:

-o, --output Write to file instead of stdout

失败重新自动提交:

--retry   Retry request if transient problems occur
     --retry-all-errors Retry all errors (use with --retry)
     --retry-connrefused Retry on connection refused (use with --retry)
     --retry-delay Wait time between retries
     --retry-max-time Retry only within this period

你可能感兴趣的:(#,生物信息,linux,运维,服务器)