欢迎光临
感受代码之美

FTP文件上传错误:Connection closed without indication解决

环境信息

  • Windows 10;
  • Serv-U 15.0.1.20;

解决办法

错误信息:

connecting...ftp服务器:192.168.5.157:21
org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
    at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:298)
    at org.apache.commons.net.ftp.FTP._connectAction_(FTP.java:365)
    at org.apache.commons.net.ftp.FTPClient._connectAction_(FTPClient.java:630)
    at org.apache.commons.net.SocketClient.connect(SocketClient.java:164)
    at org.apache.commons.net.SocketClient.connect(SocketClient.java:184)
    at com.util.FtpUtils.initFtpClient(FtpUtils.java:70)
    at com.util.FtpSample.main(FtpSample.java:10)

解决: Serv-U管理控制台->域详细信息->增加IP允许访问规则。

ftp-error-connection-closed-without-indication-1.jpg

赞(0)
未经允许禁止转载:四个空格 » FTP文件上传错误:Connection closed without indication解决

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址