Content-Length: 66019 | pFad | http://d.hatena.ne.jp/elf/20070819/1187455806

ts netstatでポートを空けているプログラムを知る - elf's blog

netstatでポートを空けているプログラムを知る

ただnetstat -lnだけだとどのプログラムからポート番号を開けているのかわからないので、それを確認するために「lsof -i」を実行します。

私はnetstatのオプションは死んだおばあちゃんから-lanputと教わりました.
というかこの画面を開発するときにこのオプション群に決定してそのまま現在に至るというだけですが.

# netstat -lanput
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 0.0.0.0:741                 0.0.0.0:*                   LISTEN      1831/rpc.statd      
tcp        0      0 127.0.0.1:199               0.0.0.0:*                   LISTEN      2034/snmpd          
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      5618/mysqld         
tcp        0      0 0.0.0.0:23306               0.0.0.0:*                   LISTEN      2358/mysqld         
tcp        0      0 0.0.0.0:139                 0.0.0.0:*                   LISTEN      2939/smbd           
  • lanputは「らんぷっと」で覚えています.6つのオプションはあやふやにしか覚えていません(ゲラ








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://d.hatena.ne.jp/elf/20070819/1187455806

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy