linux 查看端口号
时间: 2023-04-23 22:03:54 浏览: 57
在 Linux 系统中可以使用 "netstat" 命令来查看端口号。
示例:
```
netstat -tuln # 查看所有正在使用中的TCP端口
```
```
netstat -tuln | grep :80 # 查看正在使用中的80端口
```
也可以使用 "lsof" 命令来查看。
示例:
```
lsof -i :80 #查看使用80端口的进程
```
更多详情可以使用 man netstat 和 man lsof来查看.
阅读全文
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![txt](https://img-home.csdnimg.cn/images/20241231045021.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)