服务
使用安装版的JRE 1.6
JRE安装完成后会在注册表写入数据 |
|
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6 |
|
JavaHome |
C:\Program Files\Java\jre6 |
RuntimeLib |
C:\Program Files\Java\jre6\bin\client\jvm.dll |
将ftpd-typical.xml传入service.bat来安装服务
bin\service install ftpd res\conf\ftpd-typical.xml
services.msc
服务安装完成后会在注册表写入数据 |
||
HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\ftpd\Parameters |
||
Java |
Classpath |
D:\apache-ftpserver-1.0.0\common\classes;D:\apache-ftpserver-1.0.0\common\lib\aopalliance-1.0.jar;D:\apache-ftpserver-1.0.0\common\lib\ftplet-api-1.0.0.jar;D:\apache-ftpserver-1.0.0\common\lib\ftpserver-core-1.0.0.jar;D:\apache-ftpserver-1.0.0\common\lib\jcl-over-slf4j-1.5.2.jar;D:\apache-ftpserver-1.0.0\common\lib\log4j-1.2.14.jar;D:\apache-ftpserver-1.0.0\common\lib\mina-core-2.0.0-M4.jar;D:\apache-ftpserver-1.0.0\common\lib\slf4j-api-1.5.2.jar;D:\apache-ftpserver-1.0.0\common\lib\slf4j-log4j12-1.5.2.jar;D:\apache-ftpserver-1.0.0\common\lib\spring-beans-2.5.5.jar;D:\apache-ftpserver-1.0.0\common\lib\spring-context-2.5.5.jar;D:\apache-ftpserver-1.0.0\common\lib\spring-core-2.5.5.jar |
Jvm |
auto |
|
Log |
Path |
D:\apache-ftpserver-1.0.0\res\log |
StdError |
D:\apache-ftpserver-1.0.0\res\log\error.log |
|
StdOutput |
D:\apache-ftpserver-1.0.0\res\log\out.log |
|
Start |
Class |
org.apache.ftpserver.main.Daemon |
Mode |
jvm |
|
Params |
start res\conf\ftpd-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)\bin\client\jvm.dll
bin\service install ftpd res\conf\ftpd-typical.xml
通过注册表指定jvm.dll路径
启动FtpServer服务
独立运行
set JAVA_HOME=D:\jre6 (1.6.0_45)
bin\ftpd.bat res\conf\ftpd-typical.xml
连接FtpServer
ftp
open localhost 2121
admin
admin
quit
注意事项
JRE必须是32位 |
jvm.dll路径即使包含空格,也不要用双引号包裹,否则无法启动服务 |
独立运行必须设置JAVA_HOME,其指向bin目录的父级,推荐使用SET命令设置 |
若无法连接FtpServer,请检查防火墙 |