首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

Linux上查看某端口占用进程

2012-08-15 
Linux下查看某端口占用进程文章分类:操作系统 在Linux操作系统中 查看占用某一端口的进程是什么:#lsof -i:

Linux下查看某端口占用进程
文章分类:操作系统
在Linux操作系统中

查看占用某一端口的进程是什么:#lsof -i:端口号
或者
netstat -apn | grep redis

[root@192_168_56_28 ~]# lsof -i:80COMMAND   PID  USER   FD   TYPE DEVICE SIZE NODE NAMEnginx   21916  root    6u  IPv4  43908       TCP *:http (LISTEN)nginx   21917 nginx    6u  IPv4  43908       TCP *:http (LISTEN)nginx   21918 nginx    6u  IPv4  43908       TCP *:http (LISTEN)nginx   21919 nginx    6u  IPv4  43908       TCP *:http (LISTEN)nginx   21921 nginx    6u  IPv4  43908       TCP *:http (LISTEN)nginx   21922 nginx    6u  IPv4  43908       TCP *:http (LISTEN)nginx   21923 nginx    6u  IPv4  43908       TCP *:http (LISTEN)nginx   21924 nginx    6u  IPv4  43908       TCP *:http (LISTEN)nginx   21925 nginx    6u  IPv4  43908       TCP *:http (LISTEN)nginx   21926 nginx    6u  IPv4  43908       TCP *:http (LISTEN)nginx   21927 nginx    6u  IPv4  43908       TCP *:http (LISTEN)


[root@192_168_56_28 ~]# netstat -apn | grep redistcp        0      0 0.0.0.0:6379                0.0.0.0:*                   LISTEN      21084/redis-server  


查看 所有

lsof

热点排行