ふたりで

centos7 + rocky-linux9.3 port open & searche(포트 확인 및 오픈) 본문

centos7 & rocky9

centos7 + rocky-linux9.3 port open & searche(포트 확인 및 오픈)

graykang 2020. 5. 13. 13:36
728x90
반응형
SMALL

[root@localhost lib]# netstat -tln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:27017           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
tcp        0      0 192.168.122.1:53        0.0.0.0:*               LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6       0      0 ::1:631                 :::*                    LISTEN
tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN
tcp6       0      0 :::3306                 :::*                    LISTEN
tcp6       0      0 :::9100                 :::*                    LISTEN
tcp6       0      0 :::111                  :::*                    LISTEN
tcp6       0      0 :::8080                 :::*                    LISTEN
[root@localhost lib]# firewall-cmd --permanent --zone=public --add-port=8080/tcp
success
[root@localhost lib]# firewall-cmd --reload
success
[root@localhost lib]# firewall-cmd --zone=public --list-all

public (active)
  target: default
  icmp-block-inversion: no
  interfaces: enp0s3
  sources:
  services: dhcpv6-client http ssh
  ports: 1998/tcp 3306/tcp 9090/tcp 9100/tcp 27017/tcp 22/tcp 8080/tcp 3690/tcp 8090/tcp 9000/tcp 3308/tcp 1403/tcp 4221/tcp 80/tcp 8009/tcp 8443/tcp
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:

[root@localhost lib]# 

728x90
반응형
LIST

'centos7 & rocky9' 카테고리의 다른 글

centos7 + subversion 설치 설정.  (0) 2020.05.13
centos7 + jenkins 설치 설정.  (0) 2020.05.13
centos7 + tomcat8 다운로드 설정.  (0) 2020.05.13
tail -f 활용법  (0) 2020.04.29
centos7 firewall(iptables?) 포트오픈  (0) 2020.01.07
Comments