搭建自己的FTP服务器-Apache Ftp Server
来源:互联网 发布:淘宝上找代理商 编辑:程序博客网 时间:2024/06/05 08:00
一、下载
文件下载地址http://mina.apache.org/ftpserver-project/download_1.0.6.html (这里是1.0.6版本)。
二、安装JAVA环境
使用在运行Apache Ftp Server前就先要安装JRE运行环境和配环境变量。
三、运行Ftp Server
解压Apache Ftp Server 到安装目录,目录下有
<INSTALL_DIR> | |--- common | | | |--- classes | | | |--- lib | |--- bin | | |--- res | |--- conf | |--- home | |--- log
bin:目录是启动的文件
res/conf:主要是配置文件
res/home:是默认的FTP存放目录
res/log:server运行日志
在Bin目录下启动命令:
ftpd [<options>] [<configuration file>] <options> := --default <configuration file> := <XML configuration file>
如:
windows: ftpd.bat \res\conf\ftpd-typical.xml
liunx: ./bin/ftpd.sh res/conf/ftpd-typical.xml
提示启动成功后就可以在浏览器中输入 ftp://127.0.0.1:2121 (默认的端口是2121)就可以访问。
ftpd-typical.xml :主要是server配置文件
users.properties:主要是用户配置
1,
在安装目录的res\conf目录中找到users.properties,复制一份为myusers.properties
修改成自己的用户名:
ftpserver.user.myusername.homedirectory=./ftp_space
ftpserver.user.myusername.enableflag=true
ftpserver.user.myusername.writepermission=true
ftpserver.user.myusername.maxloginnumber=3
ftpserver.user.myusername.maxloginperip=3
ftpserver.user.myusername.idletime=0
ftpserver.user.myusername.uploadrate=0
ftpserver.user.myusername.downloadrate=0
这里指定 ./ftp_space 路径为ftp的home目录,就是说客户端上传的文件都放在这里。
2,
在res\conf目录中找到ftpd-typical.xml文件,复制一份,改名为 my-ftpd-typical.xml
修改内容为
<?xml version="1.0" encoding="UTF-8"?><server xmlns="http://mina.apache.org/ftpserver/spring/v1"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation=" http://mina.apache.org/ftpserver/spring/v1 http://mina.apache.org/ftpserver/ftpserver-1.0.xsd "id="myServer"max-logins="5"anon-enabled="false"max-anon-logins="0"max-login-failures="3"login-failure-delay="30000"><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/myusers.properties" encrypt-passwords="clear"/></server>主要是修改端口号,修改登录用户文件,修改最大连接用户数以及匿名用户规则
3,
在安装目录中创建run_ftp.bat文件,内容如下
cd E:\ftp_server\apache-ftpserver-1.0.0
bin/ftpd.bat res/conf/my-ftpd-typical.xml
以后双击就可以运行了
可以使用你的FTP客户端访问 ftp://localhost:21 了, 用户名是myusers.properties里设置的myusername
- 搭建自己的FTP服务器-Apache Ftp Server
- 用Apache Ftp Server搭建FTP服务器
- 使用apache的ftpserver搭建ftp服务器
- pure-ftpd 搭建自己的FTP服务器
- FTP -- 使用Apache FtpServer搭建FTP服务器
- FileZilla Server 搭建FTP服务器
- Server u搭建FTP服务器
- FTP服务器的搭建
- ftp服务器的搭建
- FTP服务器的搭建
- ftp服务器的搭建
- 如何在一台pc搭建自己的ftp服务器?
- 教你如何搭建自己的FTP服务器
- 使用Apache FtpServer搭建FTP服务器
- 使用Apache FtpServer搭建FTP服务器
- 使用Apache FtpServer搭建FTP服务器
- 使用Apache FtpServer搭建FTP服务器
- 使用Apache FtpServer搭建FTP服务器
- 字符集和字符编码
- 逻辑题之解答
- XML文件读写
- Indent tool and K&R code style
- android view ontouch view 颤抖
- 搭建自己的FTP服务器-Apache Ftp Server
- [ CSS ] 关于css中的border!
- Iscroll应用文档
- 消费者购买行为的类型(3)
- 利用 SCILAB 设计 FIR 滤波器(Minimax法)
- 牢记历史,积极乐观
- ubuntu下安装Wireshark
- String的方法compareToIgnoreCase
- hiveUDAF求中位数