Linux命令

netstat:查看端口占用状态

  netstat -ap :显示占用端口的线程的pid和名称(a: all, p: with pid/program name)。

ps:查看进程

  ps -efa:显示所有进程(e: all, f: full-format, a: with tty)。

  ps -T -p <pid>:查看进程号为pid的进程包含的线程

posted @ 2020-03-24 16:43  qiujiejie  阅读(157)  评论(0)    收藏  举报