1248 shaares
Python 2.7
python -m SimpleHTTPServer 80
ou
python 3
python -m http.server 80
être root pour les ports <1000
pour partager le contenu d'un répertoire : aller dans le rép et lancer le serveur sur le port spécifié
php :
php -S localhost:8000
You can Specify the web server's documents directory with -t, for example:
php -S localhost:8000 -t /var/lib/www
bash :
https://github.com/avleen/bashttpd/blob/master/bashttpd