티스토리 뷰
1. 방화벽 해제
[root@localhost ~]# service firewalld stop
[root@localhost ~]# systemctl disable firewalld
2. 특정 포트 설정
[root@localhost ~]# service firewalld start
[root@localhost ~]# firewall-cmd --permanent —zone=public --add-port=8080/tcp
[root@localhost ~]# firewall-cmd --reload
3. 포트 확인
[root@localhost ~]# firewall-cmd --list-all
* 참고사이트
https://linuxize.com/post/how-to-stop-and-disable-firewalld-on-centos-7/
https://holjjack.tistory.com/115
'centos 코스프레' 카테고리의 다른 글
Centos에 아파치 톰캣 설치하기 (0) | 2020.06.30 |
---|---|
폴더 접근하도록 소유자 변경 (0) | 2020.06.29 |
centos 버전 확인 방법 (0) | 2020.06.26 |
centos 7.6 minimal 설치해보기 (0) | 2020.06.26 |