• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell
您的位置:首页 > 脚本语言 >python > 400多行Python代码实现了一个FTP服务器

400多行Python代码实现了一个FTP服务器

作者: 字体:[增加 减小] 来源:互联网

通过本文主要向大家介绍了python ftp服务器,python ftp,python ftp下载,python ftp.nlst,python ftp上传等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
Python版本
实现了比之前的xxftp更多更完善的功能
1、继续支持多用户
2、继续支持虚拟目录
3、增加支持用户根目录以及映射虚拟目录的权限设置
4、增加支持限制用户根目录或者虚拟目录的空间大小

xxftp的特点
1、开源、跨平台
2、简单、易用
3、不需要数据库
4、可扩展性超强
5、你可以免费使用xxftp假设自己的私人FTP服务器

测试地址
ftp://xiaoxia.org
匿名帐号可以使用!
匿名根目录只读,映射了一个虚拟目录,可以上传文件但不允许更改!

使用方法
跟之前用C语言写的xxftp使用方法一样:

1. Create a root directory to hold the user directories.
Configure it in config.xml.
2. Create user directories under the root directory.
If you want to specify a password, create a directory named ".xxftp",
under which create a text file named "password" containing the MD5
code of the password.
3. If you want to specify the welcome and goodbye message, write it in
xxftp.welcome and xxftp.goodbye under the root directory.
4. Configure config.xml.

The structure of your FTP server root may be like:

-/root
-xxftp.welcome
-xxftp.goodbye

-user1
-.xxftp
-password
-...
-user2
-.xxftp
-password
-...
-anonymous源代码

elif cmd

您可能想查找下面的文章:

  • python实现FTP服务器服务的方法
  • python实现FTP服务器服务的方法
  • python通过ftplib登录到ftp服务器的方法
  • python实现从ftp服务器下载文件的方法
  • python实现从ftp服务器下载文件的方法
  • python 从远程服务器下载东西的代码
  • 400多行Python代码实现了一个FTP服务器
  • python 从远程服务器下载东西的代码
  • 400多行Python代码实现了一个FTP服务器

相关文章

  • Python实现全角半角字符互转的方法
  • 让python同时兼容python2和python3的8个技巧分享
  • Python实现批量检测HTTP服务的状态
  • 跟老齐学Python之让人欢喜让人忧的迭代
  • 使用Python神器对付12306变态验证码
  • python使用xmlrpclib模块实现对百度google的ping功能
  • Python isinstance判断对象类型
  • Python实现3行代码解简单的一元一次方程
  • 在Python中使用lambda高效操作列表的教程
  • Python中针对函数处理的特殊方法

文章分类

  • vbs
  • DOS/BAT
  • hta/htc
  • python
  • perl
  • VBA
  • ColdFusion
  • ruby
  • PowerShell
  • Lua
  • Golang
  • linux shell

最近更新的内容

    • pyqt4教程之实现windows窗口小示例分享
    • 详解在Python程序中解析并修改XML内容的方法
    • python实现中文转换url编码的方法
    • 简单介绍Python中的readline()方法的使用
    • 详细介绍Python中的偏函数
    • python通过pil将图片转换成黑白效果的方法
    • Python解析nginx日志文件
    • python通过正则查找微博@(at)用户的方法
    • Python多进程编程技术实例分析
    • 在Python中进行自动化单元测试的教程

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有