ubuntu命令行查看端口号占用和终止进程 # 查看端口号占用 netstat -aptn # 查找,8000为端口号 netstat -aptn | grep 8000 # 强制终止进程,990627为PID kill -9 990627