几个 快速搭建 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:

  1. https://github.com/caddyserver/caddy/releases/tag/v1.0.4
  2. ./caddy -port 8000 browse

caddy2:

  1. echo “deb [trusted=yes] https://apt.fury.io/caddy/ /” \| sudo tee -a /etc/apt/sources.list.d/caddy-fury.list
  2. sudo apt update
  3. sudo apt install caddy
  4. caddy file-server -listen :8000 -browse /home

3.filebrowser

  1. curl -fsSL https://filebrowser.org/get.sh | bash
  2. filebrowser -r /path/to/your/files

4.python

python2:

  1. python -m SimpleHTTPServer

python3:

  1. python  -m http.server
TG资源,TG搬运工
TG资源网 » 几个 快速搭建 HTTP 文件服务器