首先安装http server 找到你的文件夹,在当前文件夹下打开命令行,输入http-server,默认启动8080端口 如果想切换端口 启动: ...
首先安装http server 找到你的文件夹,在当前文件夹下打开命令行,输入http-server,默认启动8080端口 如果想切换端口 启动: ...
我们可以很简单的使用 python -m SimpleHTTPServer 快速搭建一个http服务,提供一个文件浏览的web服务。 命令如下: python -m SimpleHTTPServer 8000以命令执行路径为共享目录。 使用上面的命令可以把当前目录发布到8000端口 ...
使用Python SimpleHTTPServer 快速启动http服务 当前Python版本为2.7,3.5以后的版本略有区别,可用$ python --version 查看Python版本 1、进入需要分享的目录 2、开启http服务 注意事项 ...
python3 python2 ...
一、创建Server 1.Dos 命令 python -m BaseHTTPServer [port] 默认端口是8000, 2.Python 脚本启动 #coding:utf-8 ''' Created on 2018��10��29 ...
1、安装apache yum install httpd #根据提示,输入Y安装即可成功安装 systemctl start httpd.service #启动apache systemctl stop httpd.service #停止apache systemctl restart ...
python -m http.server 8080 ...
1、安装apache yum install httpd #根据提示,输入Y安装即可成功安装 systemctl start httpd.service #启动apache systemctl stop httpd.service #停止apache systemctl restart ...