|
|
|
¸®´ª½ºÆÁ Go Unix Power Tools Online Book
Go Bash Guide
|
|
Read No. 54 article |
2001-11-21 16:45:34 |
|
|
|
|
NickName |
Ç®ºñ´© |
Subject |
netstat·Î Æ÷Æ® °¨½ÃÇϱâ |
|
|
±Û¾´ÀÌ: metal
netstat ¸¦ ÀÌ¿ëÇÏ¿© °£´ÜÇÏ°Ô ÇöÀç Æ÷Æ®¸¦ °¨½ÃÇÒ¼ö ÀÖ½À´Ï´Ù.
(Æ÷Æ® ½ºÄ³´×Àº Àß ¾Ë·ÁÁ®ÀÖµíÀÌ Å©·¡Ä¿µéÀÌ ¾²´Â ù¹ø° ¹æ¹ýÀÔ´Ï´Ù.)
½Ã½ºÅÛ¿¡¼ ÇöÀç ¿·ÁÁ® ÀÖ´Â Æ÷Æ® º¸¿©ÁÖ±â
#netstat -nlt
n : numeric - ÁÖ¼Ò¸¦ º¸¿©ÁÝ´Ï´Ù.
l : listen - ¿·ÁÁø Æ÷Æ®
t : tcp - tcp ¿¬°á »óÅÂ
[user@mymachine /home/user]# netstat -ntl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
À§¿Í °°Àº °æ¿ì
Áï, 80¹ø(À¥) -> 3306 (mysql) -> 22(ssh) Æ÷Æ®°¡ ¿·ÁÁ®ÀÖ´Ù´Â °ÍÀ» º¸¿©ÁÝ´Ï
´Ù.
½Ã½ºÅÛ¿¡¼ ½ÇÁ¦ È°µ¿ÁßÀÎ Æ÷Æ® º¸¿©ÁÖ±â
#netstat -nat
n : numeric - ÁÖ¼Ò¸¦ º¸¿©ÁÝ´Ï´Ù.
a : active - È°µ¿ÁßÀÎ Æ÷Æ®
t : tcp - tcp ¿¬°á »óÅÂ
[user@mymachine /user]# netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 206.112.62.102:80 204.210.35.27:3467 ESTABLISHED
tcp 0 0 206.112.62.102:80 208.229.189.4:2582 FIN_WAIT2
tcp 0 7605 206.112.62.102:80 208.243.30.195:36957 CLOSING
tcp 0 0 206.112.62.102:22 10.60.1.18:3150 ESTABLISHED
tcp 0 0 206.112.62.102:22 10.60.1.18:3149 ESTABLISHED
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
3°³ÀÇ À¥ ¿¬°á°ú 2°³ÀÇ ssh ¿¬°áÀ» º¸¿©ÁÖ°í ÀÖ½À´Ï´Ù.
FIN_WAIT2¿Í CLOSING ¹× netstat ÀÇ ¶Ç ´Ù¸¥ ±â´ÉÀº man netstatÀ» ÂüÁ¶Çϼ¼
¿ä.
|
|
Page Loading [ 0.03 Sec ]
SQL Time [ 0 Sec ]
|
|
|