19 lines
		
	
	
		
			365 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			365 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| up:: [[python]]
 | |
| title:: `python3 -m http.server [port]`
 | |
| #s/informatique/langage/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 |