分类 shell 下的文章

  • 查询端口占用情况
[root@localhost ~]# netstat -ntlp
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:22              0.0.0.0:*               LISTEN      894/sshd            
tcp6       0      0 :::80                   :::*                    LISTEN      2105/docker-proxy   
tcp6       0      0 :::22                   :::*                    LISTEN      894/sshd