我正在尝试连接到Linux上的FTP服务器,当我执行ftp.listFiles(remote);时出现以下异常
SYST 215 Linux Exception in thread "AWT-EventQueue-0"
org.apache.commons.net.ftp.parser.ParserInitializationException:
Unknown parser type: Linux at
org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createFileEnt
是的,几年前就已经在这里被询问和回答了。
我唯一的问题是答案与现实不符。应该重用FTP连接,但它不是,我的curl版本是7.44.0 32/64位,OS: linux/AIX。详细模式和tcpdump都证明了每个文件上传都会打开一个新的连接。另外,在url.c中也有这个部分。
/*
* IsPipeliningPossible() returns TRUE if the options set would allow
* pipelining/multiplexing and the connection is using a HTTP protocol.
*/
static bool
我是做文件复制从Linux到Windows共享通过FTP。
一旦复制完成,我将把它移动到isilon存储,它是在网络路径上共享的(手动)。
现在我已经创建了一个批处理文件,它将从FTP共享路径复制到网络路径。
那么,如何在FTP下载之后启动批处理文件呢?我怎么才能完全自动化呢?
来自Linux
ftp -n ip
user "user" "pwd"
put app.tar.gz
一旦完成,我想移动它的网络共享路径。
我可以通过终端使用FTP或SSH连接到我的,但我不能使用FTP连接。每当我尝试使用传输连接时,我都会得到以下错误:Error -157: invalid reply from server
也许我错过了VM上的软件?我不太清楚。我不是Linux的新手,但我也不是很好。所以简化你的答案就太好了。
我的主机是一个运行MacBook的MacOS塞拉利昂
我想问一下linux中的ftp连接,如何使用终端检查linux中的ftp匿名连接?我使用while循环读取vsftpd.conf文件,就像这样
while read line
do
if [ Anonymous_enable=YES ];
then echo " Accept connection"
elif [ Anonymous_enable=NO ];
then echo "Not Accept"
fi
done<vsftpd.conf
我在Linux上运行了一个FTP脚本,它正在失败。下面是脚本:
/usr/bin/ftp -v -i -n my.ftp.server << cmd
user ftpuser password
binary
ls
<some other commands here>
quit cmd
它返回一个错误:
421 Service not available, remote server has closed connection
Not connected.
奇怪的是,如果我在命令行/usr/bin/ftp my.ftp.server中输入了这个命令,它会询问用户名
我写了一些访问FTP服务器并下载平面文件的代码。它可以在我的WAMP (Windows5.3.10)开发环境中工作,但在生产服务器(5.3.2 - Linux)上调用ftp_nlist时会失败。
它在那里停留了大约30秒,然后死了,并显示了编码错误消息[FTP] Unable to retrieve files in the directory。
相关代码如下:
$link = ftp_connect(constant("FTP_SERVER"));
if(!$link)
die("Unable to open connection to FTP Server: