星期六, 九月 10, 2005

看port被哪隻程式使用

要查看 port 被使用, 使用 netstat 即可.

netsta -tunl
t: tcp, u:udp, n: don't resolve names, l: listening

但要查看 port 被那隻程式, 就要使用 lsof,

lsof -i

感謝 jclin 教導: netstat -antp 也同樣能看出是哪隻程式佔用著 port.

相關標籤

this is comment icon netstat can also perform that [回覆]

for example, netstat -antp.

Comment by jclin (09/10/2005 19:41)

this is comment icon 回 jclin [回覆]

感謝您的教導, 讓小弟獲益良多~~ m(_ _)m

Comment by Tsung (09/10/2005 21:07)

this is comment icon [回覆]

sockstat 也是可以看到些東西.

Comment by vv (09/12/2005 17:34)
Add this page to del.icio.us Add this page to Yahoo Taiwan's bookmark Add this page to MyShare

發表迴響

標題

內容 (限制 1000 字)

暱稱

電子郵件

個人網頁


 authimage


PS: 若無法留言, 請先確認是否有打開 JavaScript, 造成您的困擾, 實在萬分對不起 Orz...(如果無法留言, 勞煩可以發信給我好嗎? 謝謝.)
PS2: 若您的留言被誤判, 我都會再自行看過, 不需要一直重覆張貼~