Linux 下查看某个端口的使用情况的方法
- 使用 netstat
1
2#查看80端口的使用情况
netstat -tnlp | grep 80netsta命令的参考地址:https://man.linuxde.net/netstat
- 使用 lsof
1
lsof -i: 80
lsof命令的参考地址:https://man.linuxde.net/lsof
Linux 下查看某个端口的使用情况的方法
1 | #查看80端口的使用情况 |
netsta命令的参考地址:https://man.linuxde.net/netstat
1 | lsof -i: 80 |
lsof命令的参考地址:https://man.linuxde.net/lsof