Docker/端口

来自康健生活
Kangkk​(留言 | 贡献)2021年4月29日 (四) 02:41的版本 (创建页面,内容为“== 标题文字 == === netstat === 显示 tcp,udp 的端口和进程等 {{Shc_out|<syntaxhighlight lang="bash"> netstat -tunlp</syntaxhighlight>|<syntaxhighlight…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

标题文字

netstat

显示 tcp,udp 的端口和进程等

[jian@kang /home/kangkk]$
netstat -tunlp
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:443             0.0.0.0:*               LISTEN      7/nginx: master pro
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      7/nginx: master pro
netstat: /proc/net/tcp6: No such file or directory
netstat: /proc/net/udp6: No such file or directory

查看端口占用

[jian@kang /home/kangkk]$
netstat -tunlp | grep 3300
netstat: /proc/net/tcp6: No such file or directory
netstat: /proc/net/udp6: No such file or directory