FTP -- 使用Apache FtpServer搭建FTP服务器
2015-06-19 10:09
567 查看
参考资料:http://wangcheng.iteye.com/blog/364756
下载linux版本
http://apache.fayea.com/mina/ftpserver/1.0.6/dist/ftpserver-1.0.6.tar.gz
解压缩到本地
在安装目录的res\conf目录中找到users.properties,复制一份为myusers.properties,修改成自己的用户名
在res\conf目录中找到ftpd-typical.xml文件,复制一份,改名为 my-ftpd-typical.xml
启动FTP,nohup /usr/local/Apache_FtpServer/bin/ftpd.sh res/conf/myftpd-typical.xml> /dev/null 2>1 &
下载linux版本
http://apache.fayea.com/mina/ftpserver/1.0.6/dist/ftpserver-1.0.6.tar.gz
解压缩到本地
在安装目录的res\conf目录中找到users.properties,复制一份为myusers.properties,修改成自己的用户名
# Password is "admin" ftpserver.user.admin.userpassword=adminadmin #ftpserver.user.admin.homedirectory=/var/www/pic ftpserver.user.admin.homedirectory=/data/pbs/pic ftpserver.user.admin.enableflag=true ftpserver.user.admin.writepermission=true ftpserver.user.admin.maxloginnumber=1000 ftpserver.user.admin.maxloginperip=10 ftpserver.user.admin.idletime=0 ftpserver.user.admin.uploadrate=0 ftpserver.user.admin.downloadrate=0
在res\conf目录中找到ftpd-typical.xml文件,复制一份,改名为 my-ftpd-typical.xml
<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="2000" 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> <data-connection idle-timeout="60"> <active enabled="true" ip-check="true" /> <passive ports="2010-2012"/> <!-- <passive ports="0"/> --> </data-connection> </nio-listener> </listeners> <file-user-manager file="./res/conf/users.properties" encrypt-passwords="clear"/> </server>
启动FTP,nohup /usr/local/Apache_FtpServer/bin/ftpd.sh res/conf/myftpd-typical.xml> /dev/null 2>1 &
相关文章推荐
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'id' in 'cla
- 令Apache中沉睡的无用进程自动退出的方法
- Apache 默认的根文档目录
- org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist:
- Fedora下apache php文件无法写入
- Apache Shiro 学习记录4
- debian-apache2配置多个站点
- Apache部署PHP常用配置
- apache kafka系列之kafka.common.ConsumerRebalanceFailedException异常解决办法
- Ubuntu Server 14.04 安装+安全Web服务器(linux+apache+mysql+php)搭建流程(更新)
- apachebench ab.exe压力测试
- Linux卸载自带的apache
- Apache + SSL搭建Linux证书服务器
- CentOS6.0(64位)安装Apache+PHP+Mysql教程,安装Magento(解决DOM,Mcrypt,GD问题)完整教程
- svn=apache搭建常见问题解决
- Apache连接PHP后无法启动问题解决思路
- 如何让apache支持.htaccess 解决Internal Server Error The server …错误
- Apache连接PHP后无法启动问题解决思路
- 浅析Apache Storm 0.10.0-beta发布:剑指Heron
- 浅析Apache Storm 0.10.0-beta发布:剑指Heron