Python搭建简易web服务器,超好用~
2015-02-04 16:18
316 查看
有时需要手机调试一些web页面,于是~找到了这个超好用的方法
首先,你要有python
然后,命令行进入web文件夹根目录,这里假设是index.html所在目录
输入python命令:
python -m SimpleHTTPServer 8080
8080是端口号,可以任意设置
之后访问:
localhost:8080/index.html即可
首先,你要有python
然后,命令行进入web文件夹根目录,这里假设是index.html所在目录
输入python命令:
python -m SimpleHTTPServer 8080
8080是端口号,可以任意设置
之后访问:
localhost:8080/index.html即可
相关文章推荐
- python开发web服务器——搭建简易网站
- python开发web服务器——搭建简易网站
- Python搭建Web服务器,与Ajax交互,接收处理Get和Post请求的简易结构
- python搭建简易服务器
- python SimpleHTTPServer 快速搭建Web服务器
- Python 搭建Web站点之Web服务器网关接口
- python简单搭建HTTP Web服务器
- python搭建简易服务器分析与实现
- Python中使用Flask、MongoDB搭建简易图片服务器
- python web 服务器搭建
- Python 搭建Web站点之Web服务器网关接口
- python3用http.server模块搭建简易版服务器
- python搭建简易服务器实例参考
- Nginx+uWSGI+Django+Python+ MySQL 搭建可靠的Python Web服务器
- Python中使用Flask、MongoDB搭建简易图片服务器
- Python web 简单服务器的搭建与运行
- linux下搭建nginx+uwsgi+web.py的python web服务器
- Python中使用Flask、MongoDB搭建简易图片服务器
- Python中使用Flask、MongoDB搭建简易图片服务器
- Python 搭建Web站点之Web服务器与Web框架