【发布时间】:2012-09-16 17:32:17
【问题描述】:
我是一名学生,刚接触netBean php 远程服务器。我试图通过netbeans(运行时)将php文件上传到远程服务器。我确定运行配置中的所有内容,ftp 信息正确,我有权将文件上传到该文件夹。
并且发生此错误: 消息提示:
"Cannot logout from server *name. Reason 250 OK. Current directory: *dir name"
日志:
Log in output window:
220---------- Welcome to Pure-FTPd [privsep] ----------
220-You are user number 17 of 500 allowed.
220-Local time is now 04:13. Server port: 21.
220-This is a private system - No anonymous login
220 You will be disconnected after 3 minutes of inactivity.
USER a4514022
331 User a4514022 OK. Password required
PASS ******
230-OK. Current restricted directory is /
230-362 files used (3%) - authorized: 10000 files
230 2476 Kbytes used (0%) - authorized: 1536000 Kb
TYPE I
200 TYPE is now 8-bit binary
CWD /public_html
250 OK. Current directory is /public_html
CWD /public_html
250 OK. Current directory is /public_html
总结
失败: 文件 test.php 无法上传文件 test.php(未知原因)。 运行时间:408 毫秒,传输:0 个文件,0 KB
我不明白发生了什么。如何解决? 我用的是netbean 6.9.1,windows 7 和java ver 7 (build 1.7.0_05) platform 1.7 那些数字,不知道哪个是版本。我只是把所有这些都放在那里。看来我是很少遇到这个问题的人……
【问题讨论】:
-
你用的是什么java和windows版本?与 windows vista/windows 7 和 ftp 远程服务器结合使用的最新 java 版本存在一些已知问题。
-
是windows 7 and java ver 7 (build 1.7.0_05) platform 1.7 这些数字,不知道你问的是哪个版本。我只是把所有这些都放在那里。看来我很少遇到这个问题...
-
我也遇到过类似的问题......虽然前段时间出现了不同的错误消息。您是否已经尝试禁用有状态 FTP? (这对我有帮助)。为此,您需要将以下内容放入命令行:netsh advfirewall set global StatefulFTP disable 更多详细信息:stackoverflow.com/questions/6990663/…