Node.js

http

npm install -g serve
serve folder_name

Python

http

python -m http.server port

ftp

pip install pyftpdlib
python -m pyftpdlib -p 21

REF

Python一秒搭建ftp服务器,帮助你在局域网共享文件 - 知乎 (zhihu.com)