19 lines
355 B
Markdown
19 lines
355 B
Markdown
up:: [[python]]
|
|
title:: `python3 -m http.server [port]`
|
|
#informatique/python
|
|
|
|
---
|
|
|
|
Comment rendre un dossier du système accessible via http.
|
|
|
|
> [!definition] syntaxe
|
|
> ```bash
|
|
> $> python3 -m http.server
|
|
> ```
|
|
> - sert par défaut sur `localhost:8000`
|
|
>
|
|
> en précisant le port à utiliser :
|
|
> ```bash
|
|
> $> python3 -m http.server [port]
|
|
> ```
|
|
^syntaxe |