Servidores HTTP Simples – Comandos em Uma Única Linha
python3 -m http.server 8080 --bind 0.0.0.0 --directory .
python -m http.server 8080 --directory .
BusyBox (containers e sistemas mínimos)
busybox httpd -f -p 8080 -h .
Netcat (somente demonstração)
while true ; do printf " HTTP/1.1 200 OK\r\n\r\n" ; ls; done | nc -l -p 8080
npx http-server . -p 8080 -a 0.0.0.0
node -e " require('http').createServer((req,res)=>{const fs=require('fs'),path=require('path');let file=path.join(process.cwd(), decodeURIComponent(req.url.split('?')[0]));fs.existsSync(file)&&fs.statSync(file).isFile()?fs.createReadStream(file).pipe(res):res.end(fs.readdirSync(process.cwd()).join('\\ n'));}).listen(8080,'0.0.0.0')"
jwebserver --port 8080 --bind-address 0.0.0.0 --directory .
go run -e ' package main; import("net/http"); func main(){ http.ListenAndServe(":8080", http.FileServer(http.Dir("."))) }'
docker run --rm -p 8080:8080 -v " $PWD :/data" python:3 python -m http.server 8080 --bind 0.0.0.0 --directory /data
docker run --rm -p 8080:80 -v " $PWD :/usr/share/nginx/html:ro" nginx