安装
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
启动
caddy file-server --listen :8080 --browse --root /opt/ # --access-log
#可简写为 caddy file-server -l:8080 -b -r /opt/
浏览
浏览器访问 http://192.168.x.x:8080/
标签:--,Caddy,sudo,caddy,apt,下载站,Ubuntu,stable,curl From: https://www.cnblogs.com/max27149/p/18596994