首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > Apache >

施用Apache FtpServer搭建FTP服务器

2012-10-17 
使用Apache FtpServer搭建FTP服务器Apache FtpServer是纯Java写的(基于mina-http://mina.apache.org/)开源

使用Apache FtpServer搭建FTP服务器

Apache FtpServer是纯Java写的(基于mina-http://mina.apache.org/)开源FTP服务器。 http://mina.apache.org/ftpserver/

一. 安装

 

1. 从 http://mina.apache.org/ftpserver/ 下载

  http://mina.apache.org/ftpserver/downloads.html

2. 解压缩到本地

 


二. 启动ftpserver

进入 %FtpServer_Home%/bin下 新建bun.bat,内容如下


以上我们是用它提供的一个典型的配置信息ftpd-typical.xml(在运行ftpd.bat时将res/conf/ftpd-typical.xml作为参数传入),而用户信息位于users.properties中



三. 配置用户信息

res\conf\users.properties:

# Licensed to the Apache Software Foundation (ASF) under one# or more contributor license agreements.  See the NOTICE file# distributed with this work for additional information# regarding copyright ownership.  The ASF licenses this file# to you under the Apache License, Version 2.0 (the# "License"); you may not use this file except in compliance# with the License.  You may obtain a copy of the License at##  http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing,# software distributed under the License is distributed on an# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY# KIND, either express or implied.  See the License for the# specific language governing permissions and limitations# under the License.# Password is "admin"#格式 ftpserver.user.用户名.属性#密码ftpserver.user.admin.userpassword=21232F297A57A5A743894A0E4A801FC3#目录ftpserver.user.admin.homedirectory=./res/homeftpserver.user.admin.enableflag=true#是否可写ftpserver.user.admin.writepermission=trueftpserver.user.admin.maxloginnumber=0ftpserver.user.admin.maxloginperip=0ftpserver.user.admin.idletime=0ftpserver.user.admin.uploadrate=0ftpserver.user.admin.downloadrate=0ftpserver.user.anonymous.userpassword=ftpserver.user.anonymous.homedirectory=./res/anonymousftpserver.user.anonymous.enableflag=trueftpserver.user.anonymous.writepermission=falseftpserver.user.anonymous.maxloginnumber=20ftpserver.user.anonymous.maxloginperip=2ftpserver.user.anonymous.idletime=300ftpserver.user.anonymous.uploadrate=4800ftpserver.user.anonymous.downloadrate=4800




热点排行