Ubuntu + Caddy 搭建简易文件下载站
安装
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/

    ================# 水平有限 欢迎指正 #=================
                    
                
                
            
        
浙公网安备 33010602011771号