python3 简易FTP
2020-03-06 20:53
1031 查看
python3 简易FTP
win系统
#!/usr/bin/env python # -*- coding:utf-8 -*- from pyftpdlib.authorizers import DummyAuthorizer from pyftpdlib.handlers import FTPHandler from pyftpdlib.servers import FTPServer # 实例化虚拟用户 authorizer = DummyAuthorizer() # 用户权限和路径 参数分别是 用户名 密码 用户目录 权限 authorizer.add_user("theo", "11111111", "F:/FTP/", perm="elradfmw") #初始化 handler = FTPHandler handler.authorizer = authorizer handler.passive_ports = range(2000,3000) #监听ip(自己电脑的ip)和端口 server = FTPServer(("192.168.2.109", 21), handler) # 开始服务 server.serve_forever()
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- python 简易ftp服务器开启
- Python使用ftplib实现简易FTP客户端的方法
- python快速搭建简易的FTP服务器
- digitalocean使用Python简易ftp服务器
- 使用python实现快速搭建简易的FTP服务器
- Python使用ftplib实现简易FTP客户端的方法
- python ftp常用操作
- python 模拟斗地主发牌(简易代码实现)
- 使用python实现http及ftp服务进行数据传输的方法
- Python编写简易木马程序
- windows安装 python并配置简易安装python各种模块的 管理包
- Gvim入门(3)——简易配置python编写环境
- python3实现FTP服务器服务的方法
- python实现简易版计算器
- python--FTP两个文件夹间的同步
- 用python 10min手写一个简易的实时内存监控系统
- Python写自动化之Ftp上传下载
- python ftplib模块使用
- python搭建简易神经网络结构
- 使用python3的base64编解码实现字符串的简易加密解密