티스토리 뷰
rest api서버를 CentOS7에 올리고 postman으로 테스트를 했는데 연결이 되지 않는다.
방화벽 포트를 닫아놨기 때문이다.
CentOS7에는 기본적으로 firewall이 설치되어있다.
$ firewall-cmd --zone=public --list-all
services:
ports:
protocols:
$ firewall-cmd --zone=public --permanent --add-port=5000/tcp
$ firewall-cmd --reload (꼭 reload를 해주어야한다.)
$ firewall-cmd --zone=public --list-all
services:
ports: 5000/tcp
protocols:
잘 작동된다.
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- flask
- 알고리즘
- centOS7
- python #프로그래머스 #완전탐색
- dumps
- 정렬
- bfs #백준 #2606 #python
- 파이썬
- notion
- 선택정렬
- MySQL
- 스프링 #시큐리티 #에러
- Python
- python #프로그래머스 #알고리즘
- python #leetcode #set
- 프로그래머스
- C++
- leetcode #python #알고리즘
- 에러로그
- Tistory
- 프로그래머스 #heap #힙 #heapq #python
- python #leetcode #algorithm
- map
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함