Wetts's blog

Stay Hungry, Stay Foolish.

0%

Python-文件服务器.md

HTTP

  • Python2: python -m SimpleHTTPServer 2019
  • Python3: python3 -m http.server 2019

FTP

首先是安装这个模块

  • python2: pip install pyftpdlib
  • python3: pip3 install pyftpdlib

启动

  • python2: python -m pyftpdlib -p 2019
  • python3: python -m pyftpdlib -p 2019