1,开启http服务
os系统自带apache服务,用命令行:
sudo apachectl start
开启http服务
2,cd到要共享的文件夹内,用命令行
python -m SimpleHTTPServer
3,在浏览器上输入
http://localhost:8000
1,开启http服务
os系统自带apache服务,用命令行:
sudo apachectl start
开启http服务
2,cd到要共享的文件夹内,用命令行
python -m SimpleHTTPServer
3,在浏览器上输入
http://localhost:8000
本文标题:mac 开启轻量级HTTPServer服务
本文链接:https://www.haomeiwen.com/subject/kzxljqtx.html
网友评论