ITPub博客

首页 > Linux操作系统 > Linux操作系统 > linux查看端口及与使用端口进程相关命令_netstat_lsof

linux查看端口及与使用端口进程相关命令_netstat_lsof

原创 Linux操作系统 作者:wisdomone1 时间:2010-02-04 02:10:23 0 删除 编辑

使用 netstat -nlt 查看端口使用情况

[root@appsvr /]# netstat -nltITPUB个人空间*Do.rYd8O
Active Internet connections (only servers)ITPUB个人空间B'MOfJ
Proto Recv-Q Send-Q Local Address               Foreign Address             State     ITPUB个人空间1sTQ5R eo'C|
tcp        0      0 127.0.0.1:7200              0.0.0.0:*                   LISTEN     
k0Wk nAJ;c9240380tcp        0      0 0.0.0.0:7777                0.0.0.0:*                   LISTEN     
6~CO?;\9240380tcp        0      0 0.0.0.0:7778                0.0.0.0:*                   LISTEN     ITPUB个人空间#]zi*vwc ZU
tcp        0      0 0.0.0.0:1830                0.0.0.0:*                   LISTEN     ITPUB个人空间0N$QOzx
tcp        0      0 0.0.0.0:33675               0.0.0.0:*                   LISTEN     ITPUB个人空间j(h B6Z]!y#N
tcp        0      0 0.0.0.0:651                 0.0.0.0:*                   LISTEN     
M6J:p[ C*U}#L9240380tcp        0      0 23.36.2.161:7148            0.0.0.0:*                   LISTEN     
[+W@U!NA9240380tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN     ITPUB个人空间 p*I+LiZ/T
tcp        0      0 127.0.0.1:12401             0.0.0.0:*                   LISTEN     
{"NTB.FXpT9240380tcp        0      0 23.36.2.161:12401           0.0.0.0:*                   LISTEN     ITPUB个人空间hbc|&Q F#x kZ
tcp        0      0 23.36.2.161:7121            0.0.0.0:*                   LISTEN     
8n?!Vco c9240380tcp        0      0 0.0.0.0:1810                0.0.0.0:*                   LISTEN     ITPUB个人空间9INW4c E f
tcp        0      0 0.0.0.0:6003                0.0.0.0:*                   LISTEN     ITPUB个人空间L'mccJ0{
tcp        0      0 0.0.0.0:12501               0.0.0.0:*                   LISTEN     ITPUB个人空间u@"w RA-y
tcp        0      0 127.0.0.1:6101              0.0.0.0:*                   LISTEN     
$d1L6s ~ kUq9m9240380tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN     
&rM-?,u E K"g x*u)l+_ a9240380tcp        0      0 0.0.0.0:9400                0.0.0.0:*                   LISTEN     
pA[0U.S$f'v&g]:A9240380tcp        0      0 0.0.0.0:6200                0.0.0.0:*                   LISTEN     ITPUB个人空间C$w-\*r"h;o3s
tcp        0      0 0.0.0.0:12601               0.0.0.0:*                   LISTEN     ITPUB个人空间Q_ h1O D Y$G-{
tcp        0      0 0.0.0.0:9401                0.0.0.0:*                   LISTEN     ITPUB个人空间$R ?:a u pWd8L
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN     ITPUB个人空间 c_?\+x3v Zk
tcp        0      0 0.0.0.0:9402                0.0.0.0:*                   LISTEN     ITPUB个人空间/jC"|$CU
tcp        0      0 0.0.0.0:1851                0.0.0.0:*                   LISTEN     ITPUB个人空间"l_K;\'`|0Oa
tcp        0      0 23.36.2.161:7100            0.0.0.0:*                   LISTEN     
Q P.Xpm#g9240380tcp        0      0 :::22                       :::*                        LISTEN     

使用lsof -i  查看端口属于哪个程序

[root@appsvr /]# lsof -i :7778
|!Z` j0H

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9240380/viewspace-626779/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
提供针对oracle初学者及进阶的数据库培训,欢迎大家咨询: 微信: wisdomone 微信公众号: lovedb 工作经历: 中国普天 北京科蓝 北京云和恩墨 北京神州新桥

注册时间:2008-04-04

  • 博文量
    2189
  • 访问量
    12689910