查看Linux端口的占用及连接情况

时间:2021-08-12 20:27:44

[root@cloudplatform ~]# netstat -nap | grep 22066 | grep 127.0.0.1 -v
tcp        0      0 :::22066                    :::*                        LISTEN      41111/mysqld        
tcp        0      0 ::ffff:172.17.91.21:22066   ::ffff:172.17.91.26:61226   FIN_WAIT2   -                   
tcp        0      0 ::ffff:172.17.91.21:22066   ::ffff:172.17.91.22:49329   ESTABLISHED 41111/mysqld        
tcp        0      0 ::ffff:172.17.91.21:22066   ::ffff:172.17.91.22:49330   ESTABLISHED 41111/mysqld        
tcp        0      0 ::ffff:172.17.91.21:22066   ::ffff:172.17.91.22:49325   ESTABLISHED 41111/mysqld        
tcp        0      0 ::ffff:172.17.91.21:22066   ::ffff:172.17.91.22:49333   ESTABLISHED 41111/mysqld        
tcp        0      0 ::ffff:172.17.91.21:22066   ::ffff:172.17.91.22:49332   ESTABLISHED 41111/mysqld