linux查看端口占用情况

菜鸟 1159 199

1、lsof -i:端口号(需要使用root执行,加端口号直接查看该端口的占用情况,不加的话则查看符合条件的进程情况) 2、netstat -tunlp|grep 端口号(可以查找某个端口的使用情况)  -t (tcp) 仅显示tcp相关选项  -u (udp)仅显示udp相关选项  -n 拒绝显示别名,能显示数字的全部转化为数字  -l 仅列出在Listen(监听)的服务状态  -p 显示建立相关链接的程序名 根据具体情况组合,例如netstat -lntp也是常用的

标签: netstat

发表评论 (已有199条评论)

评论列表

2023-01-23 01:23:41

1

2023-01-23 01:24:55

1

2023-01-23 01:51:27

1

2023-01-23 01:52:53

1

2023-01-23 01:53:55

1

2023-01-23 01:54:35

1

2023-01-23 01:54:40

1

2023-01-23 01:55:18

1

2023-01-23 01:55:21

1

2023-01-23 01:55:21

1

2023-01-23 01:55:22

1

2023-01-23 01:55:22

1

2023-01-23 01:55:23

1

2023-01-23 01:55:23

1

2023-01-23 01:55:26

1

2023-01-23 01:55:32

1

2023-01-23 01:55:35

1

2023-01-23 01:55:37

1

2023-01-23 01:55:40

1

2023-01-23 01:55:44

1

2023-01-23 01:55:46

1

2023-01-23 01:55:49

1

2023-01-23 01:55:52

1

2023-01-23 01:55:52

1

2023-01-23 01:55:52

1

2023-01-23 01:55:53

1

2023-01-23 01:55:57

1

2023-01-23 01:56:00

1

2023-01-23 01:56:49

1

2023-01-23 01:56:52

1

2023-01-23 01:56:55

1

2023-01-23 01:56:59

1

2023-01-23 01:57:00

1

2023-01-23 01:57:00

1

2023-01-23 01:57:01

1

2023-01-23 01:57:01

1

2023-01-23 01:57:01

1

2023-01-23 01:57:01

1

2023-01-23 01:57:02

1

2023-01-23 01:57:04

1

2023-01-23 01:57:07

1

2023-01-23 01:57:10

1

2023-01-23 01:57:13

1

2023-01-23 01:57:16

1

2023-01-23 01:57:20

1

2023-01-23 01:57:23

1

2023-01-23 01:57:26

1

2023-01-23 01:57:29

1

2023-01-23 01:57:32

1

2023-01-23 01:57:32

1

2023-01-23 01:57:32

1

2023-01-23 01:57:33

1

2023-01-23 01:57:36

1

2023-01-23 01:57:38

1

2023-01-23 01:57:38

1

2023-01-23 01:57:38

1

2023-01-23 01:57:39

1

2023-01-23 01:57:39

1

2023-01-23 01:57:40

1

2023-01-23 01:57:40

1

2023-01-23 01:57:40

1

2023-01-23 01:57:44

1

2023-01-23 01:57:46

1

2023-01-23 01:57:48

1

2023-01-23 01:57:51

1

2023-01-23 01:57:54

1

2023-01-23 01:57:56

1

2023-01-23 01:58:01

1

2023-01-23 01:58:04

1

2023-01-23 01:58:06

1

2023-01-23 01:58:09

1

2023-01-23 01:58:12

1

2023-01-23 01:58:15

1

2023-01-23 01:58:18

1

2023-01-23 01:58:22

1

2023-01-23 01:58:24

1

2023-01-23 01:58:24

1

2023-01-23 01:58:24

1

2023-01-23 01:58:25

1

2023-01-23 01:58:27

1

2023-01-23 01:58:30

1

2023-01-23 01:58:30

-1 OR 2+437-437-1=0+0+0+1 --

2023-01-23 01:58:31

-1 OR 3+437-437-1=0+0+0+1 --

2023-01-23 01:58:31

-1 OR 2+945-945-1=0+0+0+1

2023-01-23 01:58:32

-1 OR 3+945-945-1=0+0+0+1

2023-01-23 01:58:32

-1' OR 2+318-318-1=0+0+0+1 --

2023-01-23 01:58:32

-1' OR 3+318-318-1=0+0+0+1 --

2023-01-23 01:58:33

-1' OR 2+425-425-1=0+0+0+1 or 'mE550riD'='

2023-01-23 01:58:33

-1' OR 3+425-425-1=0+0+0+1 or 'mE550riD'='

2023-01-23 01:58:33

-1" OR 3+131-131-1=0+0+0+1 --

2023-01-23 01:58:34

-1" OR 3*2˂(0+5+131-131) --

2023-01-23 01:58:34

-1" OR 3*2˃(0+5+131-131) --

2023-01-23 01:58:36

if(now()=sysdate(),sleep(15),0)

2023-01-23 01:58:39

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z

2023-01-23 01:58:41

0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z

2023-01-23 01:58:43

(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/

2023-01-23 01:58:49

-1); waitfor delay '0:0:15' --

2023-01-23 01:58:51

1 waitfor delay '0:0:15' --

2023-01-23 01:58:55

77xFKncg'; waitfor delay '0:0:15' --

2023-01-23 01:58:57

-5 OR 696=(SELECT 696 FROM PG_SLEEP(15))--

2023-01-23 03:50:30

@gBqsPxAZ 1

2023-01-23 03:50:45

@gBqsPxAZ 1

2023-01-23 03:51:11

@gBqsPxAZ 1