几个 快速搭建 HTTP 文件服务器
1. WebFS
This is a simple http server for pure static content.
https://github.com/ourway/webfsd
https://github.com/ourway/webfsd/releases/download/1.21/webfsd.x64
Debian系统可以直接安装
apt install webfs
然后在提供文件服务的目录执行
webfsd -p 8000就在后台运行了。在浏览器打开http://ip:8000 就可以看到文件列表。
2.caddy
caddy v1:
- https://github.com/caddyserver/caddy/releases/tag/v1.0.4
- ./caddy -port 8000 browse
caddy2:
- echo “deb [trusted=yes] https://apt.fury.io/caddy/ /” \| sudo tee -a /etc/apt/sources.list.d/caddy-fury.list
- sudo apt update
- sudo apt install caddy
- caddy file-server -listen :8000 -browse /home
3.filebrowser
- curl -fsSL https://filebrowser.org/get.sh | bash
- filebrowser -r /path/to/your/files
4.python
python2:
- python -m SimpleHTTPServer
python3:
- python -m http.server