Linux 查看被占用端口的pid

lsof -i:9090  // 查看端口
kill -9 pid // 关闭进程

查看 deploy.sh 脚本产生的进程

ps -aux | grep "deploy.sh"

第二列值为PID


原文地址:https://www.cnblogs.com/winyh/p/14010950.html