Linux根据端口号获取pid netstat -nap | grep 端口号 Linux根据pid 获取端口号 netstat -nap | grep pid 根据pid 查看服务 ps -ef | grep pid