700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > linux查看某端口进程占用 Linux下查看某端口占用进程

linux查看某端口进程占用 Linux下查看某端口占用进程

时间:2024-03-14 21:53:14

相关推荐

linux查看某端口进程占用 Linux下查看某端口占用进程

文章分类:操作系统

在Linux操作系统中

查看占用某一端口的进程是什么:#lsof -i:端口号

或者

netstat -apn | grep redis

[root@192_168_56_28 ~]# lsof -i:80

COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME

nginx 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 redis

tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN 21084/redis-server

查看 所有

lsof

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。