-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Partager simplement ses fichiers en LAN | ||
|
||
L'idée est simple : démarrer un serveur de fichiers local. | ||
|
||
Rendez-vous dans le dossier contenant les fichiers à partager et exécutez une des commandes suivantes : | ||
|
||
`````{tabs} | ||
````{tab} Python 3 | ||
```{code-block} shell | ||
python -m http.server 8080 [-d FOLDER] | ||
``` | ||
```` | ||
````{tab} Python 2 | ||
```{code-block} shell | ||
python -m SimpleHTTPServer 8080 [-d FOLDER] | ||
``` | ||
```` | ||
````{tab} PHP | ||
```{code-block} shell | ||
# apt install php-cli | ||
php -S 0.0.0.0:8080 [-t FOLDER] | ||
``` | ||
```` | ||
````` | ||
|
||
--- | ||
|
||
## 📜 Historique | ||
|
||
2024-02-07 | ||
: Déplacement de l'article depuis le [blog](https://www.tiger-222.fr/?d=2018/12/18/10/01/39-partager-simplement-ses-fichiers-en-lan). | ||
|
||
2019-02-23 | ||
: Remplacement de `localhost` par `0.0.0.0` pour PHP. | ||
: Utilisation du port `8080` à la place de `5555`. | ||
|
||
2018-12-18 | ||
: Premier jet. |