Server, Maria DBMS
CentOs 열려있는 포트 확인
수동애비
2022. 5. 2. 12:31
반응형
> netstat -tnlp
TCP 중에서(t), Listening상태[열린포트]인 애들만(l), 상세정보까지(p), 10진수 숫자로(n) 표기한다.
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1439/mariadbd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1107/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1575/master
tcp6 0 0 :::16100 :::* LISTEN 20807/java
tcp6 0 0 :::13000 :::* LISTEN 1673/java
tcp6 0 0 :::3306 :::* LISTEN 1439/mariadbd
tcp6 0 0 :::22 :::* LISTEN 1107/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1575/master
* netstat이 없는 경우 yum install net-tools 을 설치한다.