一句命令启动web服务
文档说明:只记录关键地方;
nginx
docker run --rm --name nginx -p 8000:80 -v $(pwd):/usr/share/nginx/html nginx:alpine
python3
python3 -m http.server 8000
PHP
php -S 0.0.0.0:8000 -t .
nodejs
npm install http-server -g --registry=https://registry.npmmirror.com
http-server . -p 8000