File upload 卷曲,ftp上传大文件:操作在240000毫秒后超时,收到24514592768字节

File upload 卷曲,ftp上传大文件:操作在240000毫秒后超时,收到24514592768字节,file-upload,curl,ftp,libcurl,ftp-client,File Upload,Curl,Ftp,Libcurl,Ftp Client,我正在尝试使用ftp上载250 gb文件。。。iam正在使用ssh通道进行校验和控制 出现以下错误: curl -v -m 240 --disable-epsv --ftp-skip-pasv-ip --quote "TYPE I" -T 28.tar ftp://ftpkxxx:xxx@213.65.123.123/2012/12/ [root@tester /opt/tester/output]# ./send-logs-to-194.sh * About to conne

我正在尝试使用ftp上载250 gb文件。。。iam正在使用ssh通道进行校验和控制

出现以下错误:

curl -v -m 240 --disable-epsv --ftp-skip-pasv-ip --quote "TYPE I" -T 28.tar         ftp://ftpkxxx:xxx@213.65.123.123/2012/12/

[root@tester /opt/tester/output]# ./send-logs-to-194.sh
* About to connect() to 213.65.123.123 port 21 (#0)
*   Trying 213.65.123.123...   % Total    % Received % Xferd  Average Speed   Time      Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0connected
* Connected to 213.65.123.123 (213.65.123.123) port 21 (#0)
< 220 (vsFTPd 2.2.2)
> USER ftpkxxx
< 331 Please specify the password.
> PASS xxx
< 230 Login successful.
> PWD
< 257 "/str1/tester_data_backup"
* Entry path is '/str1/tester_data_backup'
> TYPE I
< 200 Switching to Binary mode.
> CWD 2012
< 250 Directory successfully changed.
> CWD 12
< 250 Directory successfully changed.
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (217,65,190,194,29,15).
* Skips 213.65.123.123 for data connection, uses 213.65.123.123 instead
*   Trying 213.65.123.123... connected
* Connecting to 213.65.123.123 (213.65.123.123) port 7439
> TYPE I
< 200 Switching to Binary mode.
> STOR 28.tar
< 150 Ok to send data.
} [data not shown]
  9  250G    0     0    9 22.7G      0  97.3M  0:43:55  0:03:59  0:39:56  102M*         Operation timed out after 240000 milliseconds with 24514592768 bytes received
  9  250G    0     0    9 22.8G      0  97.4M  0:43:54  0:03:59  0:39:55  102M* Closing     connection #0

curl: (28) Operation timed out after 240000 milliseconds with 24514592768 bytes received
curl-v-m 240--禁用epsv--ftp跳过pasv ip--引用“TYPE I”-T 28.tarftp://ftpkxxx:xxx@213.65.123.123/2012/12/
[root@tester/opt/tester/output]#/send-logs-to-194.sh
*即将连接()到213.65.123.123端口21(#0)
*正在尝试213.65.123.123…%总接收百分比%x平均速度时间电流
数据加载上载总左速度
0 0 0 0 0 0 0 0--:-:-:---:---:---:---:---0已连接
*连接到213.65.123.123(213.65.123.123)端口21(#0)
<220(vsFTPd 2.2.2)
>用户ftpkxxx
<331请指定密码。
>通过xxx
<230登录成功。
>PWD
<257“/str1/测试仪\数据\备份”
*输入路径为“/str1/tester\u data\u backup”
>第一类
<200切换到二进制模式。
>CWD 2012
<250目录已成功更改。
>CWD 12
<250目录已成功更改。
>PASV
*被动连接数据流
<227进入被动模式(217,65190194,29,15)。
*跳过数据连接的213.65.123.123,改为使用213.65.123.123
*正在尝试213.65.123.123。。。有联系的
*连接到213.65.123.123(213.65.123.123)端口7439
>第一类
<200切换到二进制模式。
>沥青
<150确定发送数据。
}[未显示数据]
9 250G 0 0 9 22.7G 0 97.3M 0:43:55 0:03:59 0:39:56 102M*操作在240000毫秒后超时,接收到24514592768字节
9250G 0 9 22.8G 0 97.4M 0:43:54 0:03:59 0:39:55 102M*闭合连接#0
curl:(28)操作在240000毫秒后超时,接收到24514592768字节

我更喜欢ftp而不是scp,因为它比scp快。。。使用ftp和校验和上传250gb文件的正确方法是什么?

您指定了允许使用-m(240秒)的最长时间,那么,当它按照您的要求在240秒后停止时,为什么对您来说是一个错误呢


PS.默认情况下使用I型…

您是对的,“-m 240”已删除。。。再试一次。。。这是大文件传输的正确且最快的方式吗?。。。你对校验和有什么建议?FTP没有处理校验和的标准方法。最好使用单独的SSH命令。