顯示廣告
隱藏 ✕
看板 MaRoon
作者 KTR150Fi (yandi)
標題 python 架設 FTP
時間 2015-08-17 Mon. 02:11:26


免費網域

Dot TK - Free Domains for All
Dot TK is the only top level domain name registry that provides free domain names. Get your free domain name today, before it's gone. ...


Freenom.com
Free and Cost Price domains for your customers



pyftpdlib 套件:




python code
 :

#!/usr/bin/env python
# encoding: utf-8

from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer

authorizer = DummyAuthorizer()
authorizer.add_user("user", "12345", "./folder", perm="elradfmw")
authorizer.add_anonymous("./folder")

handler = FTPHandler
handler.authorizer = authorizer

server = FTPServer(("127.0.0.1", 21), handler)
server.serve_forever()



連線網址:

ftp://127.0.0.1:21


還在研究如何將 FTP 連到往指定網域上...
順便徵求教學^^


--
※ 作者: KTR150Fi 時間: 2015-08-17 02:11:26
※ 編輯: KTR150Fi 時間: 2015-08-23 11:26:09
※ 看板: MaRoon 文章推薦值: 0 目前人氣: 0 累積人氣: 299 
1樓 時間: 2015-08-17 02:13:39 (台灣)
  08-17 02:13 TW
guest
x)推文 r)回覆 e)編輯 d)刪除 M)收藏 ^x)轉錄 同主題: =)首篇 [)上篇 ])下篇