netstat和ss的一些网络命令

netstat 命令

netstat -tlpn
[root@cloud ~]# netstat -tlpn
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      928/sshd            
tcp6       0      0 :::80                   :::*                    LISTEN      21626/docker-proxy  
tcp6       0      0 :::28080                :::*                    LISTEN      21236/docker-proxy  
tcp6       0      0 :::50000                :::*                    LISTEN      9498/docker-proxy   
tcp6       0      0 :::5432                 :::*                    LISTEN      14933/docker-proxy  
tcp6       0      0 :::1688                 :::*                    LISTEN      5408/docker-proxy   
tcp6       0      0 :::8090                 :::*                    LISTEN      22902/docker-proxy  
tcp6       0      0 :::443                  :::*                    LISTEN      21638/docker-proxy  
tcp6       0      0 :::8091                 :::*                    LISTEN      22890/docker-proxy  
tcp6       0      0 :::18080                :::*                    LISTEN      9511/docker-proxy   
tcp6       0      0 :::10080                :::*                    LISTEN      15329/docker-proxy  
tcp6       0      0 :::4000                 :::*                    LISTEN      16554/docker-proxy  
tcp6       0      0 :::10085                :::*                    LISTEN      22557/docker-proxy  
tcp6       0      0 :::10022                :::*                    LISTEN      15342/docker-proxy  
tcp6       0      0 :::9000                 :::*                    LISTEN      20971/docker-proxy  
[root@cloud ~]# ss -tlpn

ss命令

[root@cloud ~]# ss -tlpn
State      Recv-Q Send-Q                                                Local Address:Port                                                               Peer Address:Port              
LISTEN     0      128                                                               *:22                                                                            *:*                   users:(("sshd",pid=928,fd=3))
LISTEN     0      128                                                              :::80                                                                           :::*                   users:(("docker-proxy",pid=21626,fd=4))
LISTEN     0      128                                                              :::28080                                                                        :::*                   users:(("docker-proxy",pid=21236,fd=4))
LISTEN     0      128                                                              :::50000                                                                        :::*                   users:(("docker-proxy",pid=9498,fd=4))
LISTEN     0      128                                                              :::5432                                                                         :::*                   users:(("docker-proxy",pid=14933,fd=4))
LISTEN     0      128                                                              :::1688                                                                         :::*                   users:(("docker-proxy",pid=5408,fd=4))
LISTEN     0      128                                                              :::8090                                                                         :::*                   users:(("docker-proxy",pid=22902,fd=4))
LISTEN     0      128                                                              :::443                                                                          :::*                   users:(("docker-proxy",pid=21638,fd=4))
LISTEN     0      128                                                              :::8091                                                                         :::*                   users:(("docker-proxy",pid=22890,fd=4))
LISTEN     0      128                                                              :::18080                                                                        :::*                   users:(("docker-proxy",pid=9511,fd=4))
LISTEN     0      128                                                              :::10080                                                                        :::*                   users:(("docker-proxy",pid=15329,fd=4))
LISTEN     0      128                                                              :::4000                                                                         :::*                   users:(("docker-proxy",pid=16554,fd=4))
LISTEN     0      128                                                              :::10085                                                                        :::*                   users:(("docker-proxy",pid=22557,fd=4))
LISTEN     0      128                                                              :::10022                                                                        :::*                   users:(("docker-proxy",pid=15342,fd=4))
LISTEN     0      128                                                              :::9000                                                                         :::*                   users:(("docker-proxy",pid=20971,fd=4))

发布了147 篇原创文章 · 获赞 72 · 访问量 49万+

猜你喜欢

转载自blog.csdn.net/diyiday/article/details/100144716
今日推荐