ant使用ftp上传数据时配置的一个报错问题

简介: error:ANT FTP upload file: 425 Unable to build data connection: Connection timed out 以下是xml原配置: <ftp action="put"    server="10.254.21.117"    userid="***"    password="****"    dir
error:ANT FTP upload file: 425 Unable to build data connection: Connection timed out

以下是xml原配置:

<ftp action="put"
   server="10.254.21.117"
   userid="***"
   password="****"
   dir="/csMaillData"
   binary="yes"
   defaultDateFormatConfig="yyyy-MM-dd HH:mm">
   <fileset remotedir="/home/zyzx/csMaill/data/fileData/upload_temp">
     <include name="*.dat"/>
   </fileset>
</ftp>

解决方法:添加 passive="yes" 即可:
<ftp action="put"
   server="10.254.21.117"
   userid="***"
   password="***"
    passive="yes"
   dir="/csMaillData"
   binary="yes"
   defaultDateFormatConfig="yyyy-MM-dd HH:mm">
   <fileset remotedir="/home/zyzx/csMaill/data/fileData/upload_temp">
     <include name="*.verf"/>
   </fileset>
</ftp>


是不是很简单~~

目录
相关文章
|
5月前
|
Ubuntu 安全 网络安全
在Ubuntu系统下使用vsftpd配置FTP服务器的步骤
以上就是在Ubuntu系统下使用vsftpd配置FTP服务器的步骤。这些步骤都是基础的,但足够让你建立一个简单的FTP服务器。如果你需要更高级的功能,例如SSL加密、虚拟用户等,你可能需要进一步研究vsftpd的配置选项。
310 13
|
12月前
|
网络协议 安全 Linux
如何配置Linux端的ftp?
如何配置Linux端的ftp?
266 64
|
9月前
|
安全 网络安全
gbase8a centos8(kylinv10)加载报登录 ftp失败报错530 Login incorrect 排查过程及解决办法
centos8(kylinv10)加载报登录 ftp失败报错530 Login incorrect 排查过程及解决办法
|
11月前
|
Linux 网络安全
FTP被动模式配置
FTP被动模式配置
560 1
|
11月前
|
网络协议 Linux
搭建FTP报错:Job for vsftpd.service failed because the control process exited with error code. See
搭建FTP报错:Job for vsftpd.service failed because the control process exited with error code. See
586 3
|
网络安全 C#
FTP 被动模式配置
FTP 被动模式配置
178 0
FTP 被动模式配置
|
存储 Ubuntu 安全
如何配置 ProFTPd 以使用 SFTP 而不是 FTP
如何配置 ProFTPd 以使用 SFTP 而不是 FTP
430 0
|
Web App开发 安全 Unix
Linux 配置FTP服务器 + vsftpd服务安装配置 (Good篇)
Linux 配置FTP服务器 + vsftpd服务安装配置 (Good篇)
408 1
|
Ubuntu 网络安全 数据安全/隐私保护
ubuntu篇-配置FTP服务,本机和docker安装
通过以上步骤,你可以在Ubuntu上配置FTP服务,无论是本机安装还是Docker内安装,都可以提供FTP文件传输服务。 买CN2云服务器,免备案服务器,高防服务器,就选蓝易云。百度搜索:蓝易云
413 1