FTP返回值代表含义

FTP:屏幕信息举例 

1、用户要用FTP和远地主机(网络信息中心NIC上的主机)建立连接。 

2、本地FTP发出的连接成功信息。 

3、从远地服务器返回的信息,220表示“服务就绪”。 

4、本地FTP提示用户键入名字。用户键入的名字表示“匿名”。在internet上有许多文件免费向公众提供。用户不需要键入自己的真是名字而只需键入anonymous即可。 

5、数字331表示“用户名正确”,需要口令。 

6、本地FTP提示用户键入口令。用户这时可键入guest作为匿名的口令,也可以键入自己的电子邮件地址,即耶鲁大学数学系名为xyz的主机上的abc。 

7、数字230表示用户已经注册完毕。 

8、“ftp> ”是FTP提示信息。用户键入的是将目录改变为包含RFC文件的目录。 

9、字符CWD是FTP的标准命令,代表Change   Working   Directory。 

10、用户要求将名为rfc1261.txt的文件复制到本地主机上,并改名为nicinfo。 

11、字符PORT是FTP的标准命令,表示要建立数据连接。200表示“命令正确”。 

12、数字150表示“文件状态正确,即将建立数据连接”。 

13、数字226是“释放数据连接”。现在一个新的本地文件已产生。 

14、用户键入退出命令。 

15、表明FTP工作结束。 

110   Restart   marker   reply.   In   this   case,   the   text   is   exact   and   not   left   to   the   particular   implementation;   it   must   read:   MARK   yyyy   =   mmmm   where   yyyy   is   User-process   data   stream   marker,   and   mmmm   server 's   equivalent   marker   (note   the   spaces   between   markers   and   "= ").     

120   Service   ready   in   nnn   minutes.     

125   Data   connection   already   open;   transfer   starting.     

150   File   status   okay;   about   to   open   data   connection.     

200   Command   okay.     

202   Command   not   implemented,   superfluous   at   this   site.     

211   System   status,   or   system   help   reply.     

212   Directory   status.     

213   File   status.     

214   Help   message.On   how   to   use   the   server   or   the   meaning   of   a   particular   non-standard   command.   This   reply   is   useful   only   to   the   human   user.     

215   NAME   system   type.   Where   NAME   is   an   official   system   name   from   the   list   in   the   Assigned   Numbers   document.     

220   Service   ready   for   new   user.     

221   Service   closing   control   connection.     

225   Data   connection   open;   no   transfer   in   progress.     

226   Closing   data   connection.   Requested   file   action   successful   (for   example,   file   transfer   or   file   abort).     

227   Entering   Passive   Mode   (h1,h2,h3,h4,p1,p2).     

230   User   logged   in,   proceed.   Logged   out   if   appropriate.     

250   Requested   file   action   okay,   completed.     

257   "PATHNAME "   created.     

331   User   name   okay,   need   password.     

332   Need   account   for   login.     

350   Requested   file   action   pending   further   information     

421   Service   not   available,   closing   control   connection.This   may   be   a   reply   to   any   command   if   the   service   knows   it   must   shut   down.     

425   Can 't   open   data   connection.     

426   Connection   closed;   transfer   aborted.     

450   Requested   file   action   not   taken.     

451   Requested   action   aborted.   Local   error   in   processing.     

452   Requested   action   not   taken.   Insufficient   storage   space   in   system.File   unavailable   (e.g.,   file   busy).     

500   Syntax   error,   command   unrecognized.   This   may   include   errors   such   as   command   line   too   long.     

501   Syntax   error   in   parameters   or   arguments.     

502   Command   not   implemented.     

503   Bad   sequence   of   commands.     

504   Command   not   implemented   for   that   parameter.     

530   Not   logged   in.     

532   Need   account   for   storing   files.     

550   Requested   action   not   taken.   File   unavailable   (e.g.,   file   not   found,   no   access).     

551   Requested   action   aborted.   Page   type   unknown.     

552   Requested   file   action   aborted.   Exceeded   storage   allocation   (for   current   directory   or   dataset).     

553   Requested   action   not   taken.   File   name   not   allowed     

110     

重新启动标记应答。在这种情况下文本是确定的,它必须是:MARK   yyyy=mmmm,其中yyyy是用户进程数据流标记,mmmm是服务器标记。     

120     

服务在nnn分钟内准备好     

125     

数据连接已打开,准备传送     

150     

文件状态良好,打开数据连接     

200     

命令成功     

202     

命令未实现     

211     

系统状态或系统帮助响应     

212     

目录状态     

213     

文件状态     

214     

帮助信息,信息仅对人类用户有用     

215     

名字系统类型     

220     

对新用户服务准备好     

221     

服务关闭控制连接,可以退出登录     

225     

数据连接打开,无传输正在进行     

226     

关闭数据连接,请求的文件操作成功     

227     

进入被动模式     

230     

用户登录     

250     

请求的文件操作完成     

257     

创建 "PATHNAME "     

331     

用户名正确,需要口令     

332     

登录时需要帐户信息     

350     

请求的文件操作需要进一步命令     

421     

不能提供服务,关闭控制连接     

425     

不能打开数据连接     

426     

关闭连接,中止传输     

450     

请求的文件操作未执行     

451     

中止请求的操作:有本地错误     

452     

未执行请求的操作:系统存储空间不足     

500     

格式错误,命令不可识别     

501     

参数语法错误     

502     

命令未实现     

503     

命令顺序错误     

504     

此参数下的命令功能未实现     

530     

未登录(用户名或密码错误,1、FTP密码修改了?2、用户名/密码输入错误?先仔细检查有无输入错误   如复制的时候误复制了空格!!)     

532     

存储文件需要帐户信息     

550     

未执行请求的操作     

551     

请求操作中止:页类型未知     

552     

请求的文件操作中止,存储分配溢出     

553     

未执行请求的操作:文件名不合法 

猜你喜欢

转载自www.cnblogs.com/qcq0703/p/9020227.html
今日推荐