Note: This project is for personal learning only. Please use Apache FtpServer 1.2.0 Release — Apache MINA for production environment.
ftp-server is an FTP service implemented in Java language based on Apache FtpServer 1.2.0 Release — Apache MINA.
it's very lightweight and easy to use.
download release, then run
java -jar ftp-server.jar
you can configure ftp by configuring server.properties.
port=21
idleSeconds=60
activeLocalPort=20
passivePorts=30000-30005
anonymousLoginEnabled=true
loginFailureDelay=500
maxLogins=1000
maxAnonymousLogins=2
maxLoginFailures=3
maxThreads=0
web.enable=false
web.port=8080
web.username=admin
web.password=admin
you can perform user management and authorization in the users folder, the configuration file is suffixed with .properties
enabled=true
name=ftpadmin
password=ftpadmin
homeDir=C:/Users/meethigher/Desktop
# indicates the file path with write permission. if it is /ccc-test, it means that there is write permission under the ccc-test folder.
write=/ccc-test
maxConcurrentLogins=5
maxConcurrentLoginsPerIP=1
# bytes/second
maxDownloadRate=1024000
# bytes/second
maxUploadRate=1024000