mac os 上启用简单http file server web 文件服务器

版权声明:转载请著名原作者和出处 https://blog.csdn.net/wangrui1573/article/details/82624225

1,开启http服务 

os系统自带apache服务,用命令行:

sudo apachectl start  

开启http服务

2,cd到要共享的文件夹内,用命令行

python -m SimpleHTTPServer 

在http上共享文件夹内容

3,在浏览器上输入

http://localhost:8000

就可以看到刚共享的内容了

猜你喜欢

转载自blog.csdn.net/wangrui1573/article/details/82624225