بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِ
hmmm, terus terang saya baru tahu kalau python bisa jadi web server
1 |
$ python -m SimpleHTTPServer |
jalankan perintah diatas tentunya pada direktori kerja ya, kita dapat mengakses web tersebut melalui:
http://192.168.1.2:8000 -> ip kita
atau
http://127.0.0.1:8000
atau
http://localhost:8000
ganti port gimana?
1 |
$ python -m SimpleHTTPServer 8080 |
referensi:
https://www.linuxjournal.com/content/tech-tip-really-simple-http-server-python