查看端口状态:lsof 和 netstat 的区别
命令
- 查看 8865 端口状态
netstat -tunp|grep 8865
lsof -i:8865
非 Root 账号
-

- netstat 命令可以查看部分的信息,但是仍然存在限制:
- Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.
- 即:不能识别所以的进程,而且不是自己拥有的进程信息不会展示,需要 root 账号才能显示所有信息
- lsof 命令完成没有输出
Root 账号

- 虽然两个命令输出内容的偏重不同,但是均能显示全部信息
相关文章:
-
2022-01-07
-
2021-06-29
-
2021-03-31
-
2021-12-12
-
2022-12-23
-
2022-01-04
猜你喜欢
-
2022-12-23
-
2022-12-23
-
2021-11-19
-
2021-06-26
-
2022-12-23
-
2021-12-03
-
2021-10-01
相关资源
-
下载
2023-02-12
-
下载
2022-12-25
-
下载
2023-04-01