linux 端口tnpl,Linux和Windows端口占用情况查看
Linux :netstat
-t tcp三次握手
-u udp直傳數據
-l 監聽
-r 路由
-n 顯示ip端口號
-p 進程
一般的我們使用 netstat -tnpl | grep xxx 配合管道符來查找
[root@VM_48_173_centos conf]# netstat -tnpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 127.0.0.1:6800 0.0.0.0:* LISTEN 3569/java
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 2856/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2856/nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1015/sshd
tcp 0 0 127.0.0.1:8087 0.0.0.0:* LISTEN 30812/sshd: root@pt
tcp 0 0 127.0.0.1:6600 0.0.0.0:* LISTEN 3523/java
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN 26445/svnserve
tcp6 0 0 :::111 :::* LISTEN 32611/rpcbind
tcp6 0 0 :::80 :::* LISTEN 2856/nginx: master
tcp6 0 0 :::8088 :::* LISTEN 3569/java
Windows :netstat
通常使用netstat -aon | findstr ‘xxxx’ 注意單引號
總結
以上是生活随笔為你收集整理的linux 端口tnpl,Linux和Windows端口占用情况查看的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: WPF 打印实例
- 下一篇: 脚本启动慢_Linux 常用运维脚本,建