간단히 잠깐 파일 다운로드를 위해
Python 으로 간단히 포트를 열 수 있다.
python 2 -> SimpleHTTPServer
python 3 -> http.server
python -m SimpleHTTPServer 8000
// 명령어 맨마지막 8000은 오픈하고자 하는 Port Number
방화벽이 막혀있다면 접속이 안되니, 방화벽도 같이 오픈해주자.
내부에서 간단히 사용하자.
자세한 사용법은 아래 문서 참조
https://docs.python.org/2/library/simplehttpserver.html
20.19. SimpleHTTPServer — Simple HTTP request handler — Python 2.7.18 documentation
20.19. SimpleHTTPServer — Simple HTTP request handler Note The SimpleHTTPServer module has been merged into http.server in Python 3. The 2to3 tool will automatically adapt imports when converting your sources to Python 3. Warning SimpleHTTPServer is not
docs.python.org
https://docs.python.org/ko/3/library/http.server.html
http.server — HTTP 서버 — Python 3.10.2 문서
소스 코드: Lib/http/server.py This module defines classes for implementing HTTP servers. 경고 프로덕션에는 http.server가 권장되지 않습니다. 기초적인 보안 검사만 구현합니다. HTTPServer 클래스는 socketserver.TCPServer
docs.python.org
'2022' 카테고리의 다른 글
Apache DOS 보호 모듈 mod_evasive (0) | 2022.04.04 |
---|---|
통신사별 DNS 서버 아이피 주소 ( KT, SK, LG, 구글, 기타) (0) | 2022.03.18 |
끊김없이 네임서버 이전(교체)하기 (0) | 2022.03.18 |
KOSA 2022년 적용 SW기술자 평균임금 공표 (0) | 2022.03.17 |
SSH Passwordless Login 패스워드 입력 없이 SSH 로그인 (0) | 2022.02.09 |