ubuntu 查看端口的进程id等操作(日常使用记录) 查看端口是否在使用: netstat -nlp | grep 8080 查看已连接的全部服务端口 netstat -a 查看所有的服务端口 netstat -ap 查看指定端口 netstat -ap | grep 9999 lsof -i:9999 查看进程 ps -aux 个人用的最多的: 根据名称\PID\等来查进程 ps -aux | grep python 删除进程 sudo kill -9 PID