Linux进程端口互查 发表于 2022-03-02 更新于 2025-08-23 分类于 Tools 阅读次数: Waline: Linux下通过进程名查看进程id pid 1ps -ef | grep QuorumPeerMain 通过netstat, pid和port可以互查。 p - pidn - numerica - all 1netstat -anp | grep [pid/port]