服务
使用安装版的JRE 1.6
JRE安装完成后会在注册表写入数据 |
|
HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment1.6 |
|
JavaHome |
C:Program FilesJavajre6 |
RuntimeLib |
C:Program FilesJavajre6inclientjvm.dll |
将ftpd-typical.xml传入service.bat来安装服务
binservice install ftpd resconfftpd-typical.xml
services.msc
服务安装完成后会在注册表写入数据 |
||
HKEY_LOCAL_MACHINESOFTWAREApache Software FoundationProcrun 2.0ftpdParameters |
||
Java |
Classpath |
D:apache-ftpserver-1.0.0commonclasses;D:apache-ftpserver-1.0.0commonlibaopalliance-1.0.jar;D:apache-ftpserver-1.0.0commonlibftplet-api-1.0.0.jar;D:apache-ftpserver-1.0.0commonlibftpserver-core-1.0.0.jar;D:apache-ftpserver-1.0.0commonlibjcl-over-slf4j-1.5.2.jar;D:apache-ftpserver-1.0.0commonliblog4j-1.2.14.jar;D:apache-ftpserver-1.0.0commonlibmina-core-2.0.0-M4.jar;D:apache-ftpserver-1.0.0commonlibslf4j-api-1.5.2.jar;D:apache-ftpserver-1.0.0commonlibslf4j-log4j12-1.5.2.jar;D:apache-ftpserver-1.0.0commonlibspring-beans-2.5.5.jar;D:apache-ftpserver-1.0.0commonlibspring-context-2.5.5.jar;D:apache-ftpserver-1.0.0commonlibspring-core-2.5.5.jar |
Jvm |
auto |
|
Log |
Path |
D:apache-ftpserver-1.0.0 eslog |
StdError |
D:apache-ftpserver-1.0.0 eslogerror.log |
|
StdOutput |
D:apache-ftpserver-1.0.0 eslogout.log |
|
Start |
Class |
org.apache.ftpserver.main.Daemon |
Mode |
jvm |
|
Params |
start resconfftpd-typical.xml
|
|
WorkingPath |
D:apache-ftpserver-1.0.0 |
|
Stop |
Class |
org.apache.ftpserver.main.Daemon |
Mode |
jvm |
|
Params |
stop
|
使用Procrun Service Manager (ftpdw.exe)来管理FtpServer服务及其注册表信息
根据JRE注册表信息自动定位Java Virtual Machine (jvm.dll)
注意:该版本的ftpdw.exe在修改数据时,可能异常终止,并产生乱码现象,因此,建议直接操作注册表。
使用非安装版的JRE 1.6
D:jre6 (1.6.0_45)inclientjvm.dll
binservice install ftpd resconfftpd-typical.xml
通过注册表指定jvm.dll路径
启动FtpServer服务
独立运行
set JAVA_HOME=D:jre6 (1.6.0_45)
binftpd.bat resconfftpd-typical.xml
连接FtpServer
ftp
open localhost 2121
admin
admin
quit
注意事项
JRE必须是32位 |
jvm.dll路径即使包含空格,也不要用双引号包裹,否则无法启动服务 |
独立运行必须设置JAVA_HOME,其指向bin目录的父级,推荐使用SET命令设置 |
若无法连接FtpServer,请检查防火墙 |