B / Y / U / S
HOME À¥ È£½ºÆà µµ¸ÞÀÎ ¸Å´º¾ó °í°´Áö¿ø ¼³Á¤Á¤º¸ °èÁ¤½Åû 2024-12-25 Wednesday 
À¥ È£½ºÆÃ
# °øÁö »çÇ×
# ÀÚÁÖ ¹¯´Â Áú¹®
# Áú¹®°ú ´äº¯
# °¡ÀÔ ¹®ÀÇ
Ä¿¹Â´ÏƼ
# ÀÚÀ¯°Ô½ÃÆÇ
# ¸®´ª½ºÆÁ
# ¾ÆÀÌÅ¥ Å×½ºÆ®
# ³»È¨ ¼Ò°³
# °Ö·¯¸®
# ÀÚ·á½Ç

  ¸®´ª½ºÆÁ  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À» ÂüÁ¶Çϼ¼
¿ä.
Regist Addr [ 192.168.0.2 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.03 Sec ] SQL Time [ 0 Sec ]

Copyleft 1999-2024 by JSBoard Open Project
Theme Designed by IDOO And follow GPL2

°³ÀÎÁ¤º¸ Ãë±Þ¹æħ ÀÌ¿ë ¾à°ü »çÀÌÆ® ¸Ê ¾îµå¹Î °ü¸®