[yz@localhost ~]$ lsof -i TCP:1-7404 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME postgres 17442 yz 5u IPv6 824828 0t0 TCP localhost:7404 (LISTEN) postgres 17442 yz 6u IPv4 824829 0t0 TCP localhost:7404 (LISTEN)