= windows ========

# 最方便的
# 會以port為基準,show出所使用的程式
netstat -abn

# 需要向M$下載的工具(PortQry)
# (PortQry Command Line Port Scanner Version 2.0)
# 會以目前運行的process,show出所使用的port
PortQry.exe -local

= linux ========

# 以port為基準,show出所使用的程式
# 只看tcp,就打-antp,udp的話是-anup
netstat -anp

# 以運行的process,show出所使用的port
# 跟netstat相比,這個清楚多了,不過要看管理者所要看的格式是什麼
lsof -i
arrow
arrow
    全站熱搜

    付爸爸 發表在 痞客邦 留言(0) 人氣()