报错: 501 Error in parameters.

使用ftp上传文件报错:501 Error in parameters.


Remote system type is UNIX.
Using binary mode to transfer files.
ftp> 
ftp> ls
200 PORT command successful.
150 OK
drwxr-xr-x   3 neo ftp          4096 Nov 30 03:52 test
-rw-r--r--   1 neo ftp          8938 Nov 30 07:20 1
drwxr-xr-x   3 neo ftp          4096 Dec 03 01:38 stupid-ftpd
-rw-r--r--   1 neo ftp         34487 Nov 29 11:47 stupid-ftpd-1.5beta.tar.gz
226 Transfer complete.
ftp> 
ftp> 
ftp> put /home/neo/test/1_test/1.c /test
local: /home/neo/test/1_test/1.c remote: /test
200 PORT command successful.
501 Error in parameters.
ftp> put /home/neo/test/1_test/1.c /test/1.c
local: /home/neo/test/1_test/1.c remote: /test/1.c
200 PORT command successful.
150 FILE: 1.c
226 Transfer complete.
781 bytes sent in 0.02 secs (40.0 kB/s)
ftp> 

故,使用:

put /home/neo/test/1_test/1.c /test

会报错。
使用:

put /home/neo/test/1_test/1.c /test/1.c

则可以正常传输文件。

猜你喜欢

转载自blog.csdn.net/weixin_38184741/article/details/84748017