如何配置Apache FtpServer? [英] How to configure Apache FtpServer?
问题描述
我在Apache FtpServer的文档中发现了这个非常简单的描述:
$ b
与Spring Framework集成
Apache FtpServer使用Spring Framework来实现配置。这也意味着我们获得了与常规Spring XML配置完全集成的额外好处。例如,您可以将server元素嵌入到Spring配置中,并且在类路径中使用FtpServer,Spring将为您连接服务器。
没有关于:
- 我应该在哪里放置这个配置文件?
- 文件名应该是什么?
- 应用程序如何找到该文件?
- Where should I put this configure file?
- What should the file name be?
- How could the application find that file?
关于这方面的文档,并不难找到。它在这个页面上:
http://mina.apache.org/ftpserver-project/running_ftpserver_standalone.html
事实证明,您只需在命令行上指定XML配置文件当启动服务器时:
bin / ftpd.sh res / conf / ftpd-typical.xml
$对于Windows: bin /ftpd.bat res / conf / ftpd-typical.xml
我只为自己试过这个:I下载服务器,开除命令,并且......开始服务。
I found this very simple description on Apache FtpServer's document:
Integration with Spring Framework
Apache FtpServer uses Spring Framework to implement the configuration. That also means that we get the added benefit of full integration with regular Spring XML configuration. For example, you can embed the "server" element where ever you like within you Spring configuration, and with FtpServer on the classpath, Spring will wire up the server for you.
Nothing else about:
Do I have study Spring's Configure Framework to know all about it?
解决方案 There is documentation about that, and it wasn't too hard to find. It's on this page:
http://mina.apache.org/ftpserver-project/running_ftpserver_standalone.html
Turns out that you specify the XML configuration file simply on the command line when starting the server:
bin/ftpd.sh res/conf/ftpd-typical.xml
For Windows:
bin/ftpd.bat res/conf/ftpd-typical.xml
I just tried this for myself: I downloaded the server, fired off the command, and... it started serving.
这篇关于如何配置Apache FtpServer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!