markdown 简单文件服务器为当前目录服务

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 简单文件服务器为当前目录服务相关的知识,希望对你有一定的参考价值。

```
python3 -m http.server
```

or if you don't want to use the default port 8000

```
python3 -m http.server 3333
```

or if you want to allow connections from localhost only

```
python3 -m http.server --bind 127.0.0.1
```

See the [docs](https://docs.python.org/3/library/http.server.html#module-http.server)
```
$ npm install -g http-server
$ http-server Downloads -a localhost -p 8080
```

Starting up http-server, serving Downloads on port: 8080

Hit CTRL-C to stop the server

以上是关于markdown 简单文件服务器为当前目录服务的主要内容,如果未能解决你的问题,请参考以下文章