注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

流星永恒的博客

JSF,Facelets,Rich(Prime)Faces,和java的笔记

 
 
 

日志

 
 

Apache FTPServer Install  

2011-04-09 21:59:51|  分类: 资料 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

1. Modify config file res/conf/ftpd-typical.xml

 <listeners>
  <nio-listener name="default" port="21">
      <ssl>
                <keystore file="./res/ftpserver.jks" password="password" />
            </ssl>
  </nio-listener>
 </listeners>
 <file-user-manager file="./res/conf/users.properties" encrypt-passwords="false"/><!--default is true, MD5 encrypt-->

2. Add a new user in users.properties.

ftpserver.user.daniel.userpassword=1
ftpserver.user.daniel.homedirectory=./res/home
ftpserver.user.daniel.enableflag=true
ftpserver.user.daniel.writepermission=false
ftpserver.user.daniel.maxloginnumber=20
ftpserver.user.daniel.maxloginperip=2
ftpserver.user.daniel.idletime=300
ftpserver.user.daniel.uploadrate=4800
ftpserver.user.daniel.downloadrate=4800

3. Install

Use ftpd-typical.xml to install ftp service on my windows os.
E:\apache-ftpserver-1.0.5>cd bin

E:\apache-ftpserver-1.0.5\bin>service install ftpd res/conf/ftpd-typical.xml
Installing the service 'ftpd' ...
Using FTPD_HOME:        E:\apache-ftpserver-1.0.5
Using JAVA_HOME:        D:\Program Files\Java\jdk1.6.0_23
Using JVM:              D:\Program Files\Java\jdk1.6.0_23\jre\bin\server\jvm.dl

start
start;res/conf/ftpd-typical.xml
start;res/conf/ftpd-typical.xml
The service 'ftpd' has been installed.

E:\apache-ftpserver-1.0.5\bin>ftpdw.exe

E:\apache-ftpserver-1.0.5\bin>ftp
ftp> open localhost 2121
Connected to DANIEL.
220 Service ready for new user.
User (DANIEL:(none)): daniel
331 User name okay, need password for daniel.
Password:
230 User logged in, proceed.
ftp> ls
200 Command PORT okay.
150 File status okay; about to open data connection.
README.txt
226 Closing data connection.
ftp: 收到 12 字节,用时 0.00Seconds 12000.00Kbytes/sec.
ftp> quit
221 Goodbye.

E:\apache-ftpserver-1.0.5\bin>ftp
ftp> open localhost 21
Connected to DANIEL.
220 Service ready for new user.
User (DANIEL:(none)): admin
331 User name okay, need password for admin.
Password:
230 User logged in, proceed.
ftp> ls
200 Command PORT okay.
150 File status okay; about to open data connection.
README.txt
226 Closing data connection.
ftp: 收到 12 字节,用时 0.00Seconds 12000.00Kbytes/sec.
ftp> quit
221 Goodbye.

  评论这张
 
阅读(1361)| 评论(2)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018