Cerca nel blog

martedì 3 dicembre 2013

Condividere cartelle con Python

Spostatevi nella cartella che volete condividere

cd /home/mia_home/Scaricati

date il seguente comando

python2 -m SimpleHttpServer
vi restituirà
Serving HTTP on 0.0.0.0. port 8000

ora avrete condiviso la cartella Scaricati che sarà accessibile tramite browser al'indirizzo http://vostro_ip:8000 esempio 192.168.2.1:8000.

Questo comando non fa altro che "abilitare" un server HTTP sul vostro PC.

per avere un server HTTP più "serio" vi rimando a questo articolo

Nessun commento:

Posta un commento