- 查看某个具体进程
- 查看端口占用
- lsof
- netstat
ps -a
这个可以看到本机所有的应用进程,可以使用grep过滤需要的,例如:python
查看端口占用 lsoflsof -i:端口号netstat
netstat -tunlp | grep 端口号
netstat -tunlp 用于显示 tcp,udp 的端口和进程等相关情况

ps -a
这个可以看到本机所有的应用进程,可以使用grep过滤需要的,例如:python
查看端口占用 lsoflsof -i:端口号netstat
netstat -tunlp | grep 端口号
netstat -tunlp 用于显示 tcp,udp 的端口和进程等相关情况