ps axu |grep 程序名,找到特定程序的pid

netstat -nltp |grep pid即可。