ubuntu, ror, jQuery, css, website memo
太嫩, 沒啥心得, 用來紀錄每天學的
2009年4月18日 星期六
netstat command
鳥哥 netstat
範例三:秀出目前已經啟動的網路服務<br />[root@linux ~]# netstat -tulnp<br />Active Internet connections (only servers)<br />Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name<br />tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2141/master<br />tcp 0 0 :::22 :::* LISTEN 1924/sshd<br />tcp 0 0 :::25 :::* LISTEN 2141/master<br />udp 0 0 127.0.0.1:53 0.0.0.0:* 1911/named<br /># 上面最重要的其實是那個 -l 的參數,因為可以僅列出有在 Listen 的 port<br /><br />
範例四:觀察本機上頭所有的網路連線狀態<br />[root@linux ~]# netstat -atunp<br />Active Internet connections (servers and established)<br />Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name<br />tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2141/master<br />tcp 0 0 :::22 :::* LISTEN 1924/sshd<br />tcp 0 0 :::25 :::* LISTEN 2141/master<br />tcp 0 68 192.168.1.100:22 192.168.1.210:1504 ESTABLISHED 30417/sshd:<br />udp 0 0 127.0.0.1:53 0.0.0.0:* 1911/named<br />
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言