linux下查看端口和服务的一些命令

[root@test proc]# netstat -an

[root@test proc]# /usr/sbin/lsof -i |grep 21
proftpd 1408 root 0u IPv4 10850 1471 root 0u IPv4 21162 192.168.0.1:3631 (ESTABLISHED)
proftpd 1471 root 1u IPv4 21162 ;192.168.0.1:3631 (ESTABLISHED)

netstat -lp 查看端口使用

netstat -nap | grep 21 看看什么程序运行在21端口
 
 http://www.516600.com/cgi-bin/lb5000/topic.cgi?forum=59&topic=278&show=25

posted on 2008-10-10 23:26  为人民服务  阅读(940)  评论(0编辑  收藏  举报