第一种: python -c “import SimpleHTTPServer as s; s.test();” 8000 第二种: screen python3 -mhttp.server 8099 PS: 推荐第二种 Screen类似于后台执行,及时终端断开连接也可访问! 效果图: