查看单个帖子
Red_Char
 
Red_Char 的头像
高级会员
 
资 料:
注册日期: Jul 2001
帖子: 970 声望值: 3
精华: 0,解答: 1
#1 旧 2019-02-12, 09:14:22 Icon17 【讨论】windows自带的ftp命令是不是不支持被动模式
Red_Char 当前离线  

需要从内网服务器向公网服务器定期传东西,写了个bat调用windows自己的ftp命令,结果怎么都是200 150报错,用quote PASV和LITERAL PASV都没用 ,谁有相关经验吗?

ftp> LITERAL PASV
ftp> put "F:\mySQLBakup\Redis-x64-3.2.100.msi"

服务器返回
(002465)2019-02-12 8:44:13 - nm ()> 230 Logged on
(002465)2019-02-12 8:45:19 - nm ()> PASV
(002465)2019-02-12 8:45:19 - nm ()> 227 Entering Passive Mode ()
(002465)2019-02-12 8:45:24 - nm ()> PORT 192,168,100,1,9,72
(002465)2019-02-12 8:45:24 - nm ()> 200 Port command successful
(002465)2019-02-12 8:45:24 - nm ()> STOR Redis-x64-3.2.100.msi
(002465)2019-02-12 8:45:24 - nm ()> 150 Opening data channel for file upload to server of "/Redis-x64-3.2.100.msi"
(002465)2019-02-12 8:45:34 - nm ()> 425 Can't open data connection for transfer of "/Redis-x64-3.2.100.msi"
(002465)2019-02-12 8:47:35 - nm ()> 421 Connection timed out.



回复时引用此帖