连接ftp返回了421 received. Server closed connection
2017-07-11 16:20
881 查看
连接ftp返回了421 received. Server closed connection 。后跟踪源码发现,客户端大量的连接服务器 ftp并传输数据时,服务器处于被动模式(Passive),服务器不断的建立socket端口来传输数据。若没有指定端口范围,端口号会不断的增长,端口号最大长到65535。
解决:若ftp是IIS服务器搭建的如下:
IIS FTP 设置:控制面板->系统与安全->管理工具->Internet信息服务(IIS)管理器。右侧面板有FTP防火墙支持,数据通道端口范围5000-6000(若原来已经有配置,非0-0,则不需要更改)
如图1 图2
若ftp是FileZilla软件搭建的如下:
FileZilla设置:Settings->Passive mode settings 勾选Use custom port range,范围填写50000-51000
如图3
解决:若ftp是IIS服务器搭建的如下:
IIS FTP 设置:控制面板->系统与安全->管理工具->Internet信息服务(IIS)管理器。右侧面板有FTP防火墙支持,数据通道端口范围5000-6000(若原来已经有配置,非0-0,则不需要更改)
如图1 图2
若ftp是FileZilla软件搭建的如下:
FileZilla设置:Settings->Passive mode settings 勾选Use custom port range,范围填写50000-51000
如图3
相关文章推荐
- 使用Apache 的 FTP Client获取FTP服务器上的文件列表FTP response 421 received.Server closed connection问题的解决
- 使用Apache 的 FTP Client获取FTP服务器上的文件列表FTP response 421 received.Server closed connection问题的解决
- FtpWebRequest UploadFile返回"The underlying connection was closed: The server committed a protocol violation."解决方法
- redis远程连接后,输入命令出现Error:Server closed the connection
- 解决SSH连接时提示server responded connection closed
- SFTP无法连接,报"Connection closed by server with exitco
- SSH Secure Shell Client连接Linux时总是会遇到Server responded "connection closed"
- SFTP无法连接 Connection closed by server with exitcode 127
- svn报Could not read status line: connection was closed by server(不能读状态行: 连接被服务器关闭)
- NodeJS连接MySQL时遇到的问题 Error: Connection lost: The server closed the connection.
- om.microsoft.sqlserver.jdbc.SQLServerException: 到主机 的 TCP/IP 连接失败。 java.net.ConnectException: Connection refused: connect
- VMware View client连接错误:A secure connection to the server '(null)' cannot be established
- SQL Server 连接加密 (1) -- SQL Server connection encyption
- 解决 OpenSSH - “ Error: Connection closed by server with exitcode 128 ” 错误(ZT)
- SQL Server ConnectionString 连接字符串和身份验证 (转)
- VS环境下 Ibatis .Net 连接sqlserver 2005 碰到的问题 Unable to open connection to "Microsoft SQL Server, provider V2.0.0.0 in framework .NET V2.0".
- 如何解决sql连接错误HResult 0x2, Level 16, State 1 Could not open a connection to SQL Server [2].
- MYSQL 远程连接错误ERROR 2013 (HY000): Lost connection to MySQL server at
- Could not read status line: connection was closed by server
- 如何解决sql连接错误HResult 0x2, Level 16, State 1 Could not open a connection to SQL Server [2].