LISTEN Port확인
·
Linux
-bash-4.1$ netstat -atnp Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN - 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:32888 0.0.0.0:* LISTEN - tcp 0 0 :::55138 :::* LISTEN - tcp 0 0 :::3306 :::* LISTEN - tcp 0 0 :::111 :::* LISTEN - tcp 0 0 :::22 :::* LISTEN - tcp 0 0 :::23 :::* LIST..
netstat
·
Linux
netstat cmd는 현재 리눅스에서 사용중인 network 상태를 알려줌 netstat -anp : 현재 리눅스 서버와 연결된 모든 connection 정보 특정 데몬이 사용하는 네트워크 컨넥션 정보를 알고 싶을 때는 grep name 을 같이 사용하면 된다. netstat -anp | grep name 특정 데몬이 다수개의 connection을 가지고 있을 때 실행중인 데몬의 개수 netstat -anp | grep name | wc -l ESTABLISH 한 connection 확인 netstat -anp | grep EST