使用 python -m SimpleHTTPServer 搭建http服务
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
在linux系统上安装了Python后,Python自带了一个WEB服务器 SimpleHTTPServer
可以使用 python -m SimpleHTTPServer 快速搭建一个http服务,提供一个文件浏览的web服务。
在终端输入命令把当前目录发布到8000端口:
python -m SimpleHTTPServer 8000 &
在命令的开头加一个nohup,忽略所有的挂断信号,防止关闭bash或者ctrl c kill掉进程
nohup python -m SimpleHTTPServer 8000 &
之后即可通过浏览器访问




A beautiful web dashboard for Linux
最近提交(Master分支:14 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)