Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure Apache FtpServer?

Tags:

spring

ftp

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:

  1. Where should I put this configure file?
  2. What should the file name be?
  3. How could the application find that file?

Do I have study Spring's Configure Framework to know all about it?

like image 253
ablmf Avatar asked Nov 01 '25 08:11

ablmf


1 Answers

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.

like image 115
Carl Smotricz Avatar answered Nov 03 '25 22:11

Carl Smotricz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!