显示页面过去修订反向链接全部折叠/展开回到顶部 本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。 ====== bare site test ====== ===== start ===== <code bash baresitetest.sh [enable_line_numbers="true"]> mkdir -p /tmp/testsite echo "hello from server $(date)" > /tmp/testsite/index.html cd /tmp/testsite nohup python3 -m http.server 80 --bind 0.0.0.0 > /tmp/http.log 2>&1 & </code> Non-superuser may not have access to 80 port, use sudo then. ===== stop ===== To kill the thread, get its pid via <code bash> ps aux | grep "python3 -m http.server" | grep -v grep </code> and then terminate the task using <code bash>kill <pid></code> or <code bash>kill -9 <pid></code> vps/baresitetest.txt 最后更改: 2026/06/23 14:35由 xiaobenmao