Creare un server HTTP temporaneo su Linux con Servefile
Servefile è un piccolo programma che crea al volo un server HTTP temporaneo su Linux, per permettere di scaricare un determinato file tramite rete.
Su Debian l'ho installato tramite repo:
# aptitude install servefile
Una volta fatto installato ci basterà usare questo comando:
$ servefile mp-cms_2020-04-30.zip
Serving "mp-cms_2020-04-30.zip" at port 8080.
Some addresses this file will be available at:
http://192.168.1.185:8080/
192.168.1.130 - - [11/Jun/2020 13:31:04] "GET / HTTP/1.1" 302 -
192.168.1.130 - - [11/Jun/2020 13:31:04] "GET /mp-cms_2020-04-30.zip HTTP/1.1" 200 -
192.168.1.130 finished downloading mp-cms_2020-04-30.zip
Come vedete vengono anche visualizzati i download.
Per scaricare il file basterà accedere a quell'indirizzo, e verrà inizato il download in automatico.
Enjoy!
server http linux servefile
Commentami!