首先安裝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 ...