sh命令如何由进程pid得到端口号如图。netstat -anp|grep 进程pid,得到如图结果。 我想得到1024这个端口号。怎么得到。[解决办法]
netstat -anp [解决办法] grep 8282 [解决办法] awk -F '[ :]+' '{print $7}'