페이지

2019년 12월 24일 화요일

python simple http server ( web server )

현재 디렉토리를 웹서버로 만들어주는 명령입니다.

커맨드창에서 다음 명령을 실행합니다.


python -m SimpleHTTPServer


포트를 지정할 수 있습니다.

python -m SimpleHTTPServer 9000


Serving HTTP on 0.0.0.0 port 9000 ...

과 같은 메시지가 나오면 작동하는 것입니다.



https://docs.python.org/2/library/simplehttpserver.html