[python] http.server로 간단한 웹서버 실행하기
aws iot secure tunneling에서 localproxy를 테스트하기 위해 웹 서버를 띄울 방법을 모색하다 배우게 된 방법. python3 -m http.server [port] [--directory 디렉토리 경로] port는 생략할 경우 default 8000번을 사용한다. --directory는 생략할 경우, 현재 디렉토리를 기준으로 실행된다. 활용 예시 (index.html을 만들어 초기 페이지를 작성) [~] # index.html 내용 : this is ingnoh's http.server example!!! [~] vi index.html [~] python3 -m http.server Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:800..
Dev./python
2021. 3. 17. 10:58
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- spring boot
- terraform
- AWS
- jQuery
- postgresql
- react
- etc
- Docker
- RancherDesktop
- shell
- AWS IoT
- eureka
- hashicorp
- Node.js
- kotlin
- Database
- javascript
- Spring Cloud Config
- pgloader
- Vault
- Git
- Java
- JEST
- IntelliJ
- JPA
- mysql
- Gradle
- 코딩테스트
- Puppeteer
- Linux
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
글 보관함