1、netstat -anp | grep 端口号
-a, --all, --listening display all sockets (default: connected)
-n, --numeric don't resolve names
-p, --programs display PID/Program name for sockets
结果:
udp 0 0 192.168.19.136:8888 0.0.0.0:* 2491/server