linux查看端口占用情况

来源:互联网 发布:淘宝装修自定义内容区 编辑:程序博客网 时间:2024/06/10 16:30
netstat -ntplActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program nametcp        0      0 0.0.0.0:8009            0.0.0.0:*               LISTEN      31413/java      tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      1254/mysqld     tcp        0      0 0.0.0.0:8012            0.0.0.0:*               LISTEN      20005/nginx.conftcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      31413/java      tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      20005/nginx.conftcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      877/vsftpd      tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      594/sshd        tcp        0      0 127.0.0.1:15770         0.0.0.0:*               LISTEN      1585/aegis_quartztcp        0      0 0.0.0.0:801             0.0.0.0:*               LISTEN      20005/nginx.conftcp        0      0 127.0.0.1:8005          0.0.0.0:*               LISTEN      31413/java      tcp6       0      0 :::22                   :::*                    LISTEN      594/sshd     

0 0