电脑疯子技术论坛|电脑极客社区

 找回密码
 注册

QQ登录

只需一步,快速开始

[linux教程] Linux查看端口进程

[复制链接]
luowei 发表于 2017-7-24 17:31:09 | 显示全部楼层 |阅读模式

Linux查看端口进程方法一

1、使用命令:netstat –apn,查看所有的进程和端口使用情况,找到端口对应的PID。

  1. [root@LAMP LAMP]# netstat -apn
复制代码

2、使用命令:ps -aux | grep pid 查看对应的进程

  1. [root@LAMP LAMP]#  ps -aux | grep 9334
复制代码


Linux查看端口进程方法二

1、直接使用 netstat -anp | grep port

  1. [root@LAMP LAMP]# netstat -apn | grep 8080
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|VIP|电脑疯子技术论坛 ( Computer madman team )

GMT+8, 2025-3-14 04:10

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表